in reply to Any way to binmode <>
unless (open (FH, "filename.ext")) { print STDERR "Cannot open file - ", $!, "\n"; exit 1; }; binmode (FH); while (<FH>) { ... your code follows ... };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Any way to binmode
by Thelonius (Priest) on Aug 02, 2001 at 19:31 UTC |