in reply to Re^2: How can you sysread an entire file?
in thread How can you sysread an entire file?
under windows, the file will have a size of two bytes (\r\n)- under linux just 1 (\n) comapre it touse strict; use warnings; open(FILE, '>', 'foo.bar') or die "Daim!"; print FILE "\n"; close FILE;
use strict; use warnings; open(FILE, '>', 'foo.bar') or die "Daim!"; binmode FILE; print FILE "\n"; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can you sysread an entire file?
by NeilF (Sexton) on Jan 13, 2006 at 18:33 UTC | |
by ikegami (Patriarch) on Jan 13, 2006 at 22:10 UTC | |
by NeilF (Sexton) on Jan 13, 2006 at 23:11 UTC |