binmode causes the file to be read (still line by line) but with exactly the binary values of that line. So, for example, without binmode, a line ending in Lf is read as ending with CrLf and with binmode it will show as ending in Lf. Same goes for lines ending in Cr only or CrLf; without it, line ends all com out the same. With it they come out as they were.
|file: /Techref/language/perl/binmode.htm, 0KB, , updated: 2001/2/16 09:22, local time: 2021/3/8 14:06,
|©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/language/perl/binmode.htm"> language perl binmode</A>
|Did you find what you needed?|
PICList 2021 contributors:
o List host: MIT, Site host massmind.org, Top posters @20210308 RussellMc, Neil, Bob Blick, Harold Hallikainen, Spehro Pefhany, Clint Jay, Jason White, Alan Pearce, Sean Breheny, David C Brown,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!