jy38 has asked for the wisdom of the Perl Monks concerning the following question:
Whenever this runs into the ascii character 0x1A Perl seems to interpret this as the end of the data and the string will not contain the entire contents of the file. How can I avoid this? --Johnlocal $/=undef; open FP, "<fileName" or die "Cannot open file!\n"; my( $myFile ) = <FP>; close FP;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading binary data
by Fastolfe (Vicar) on Jan 30, 2001 at 06:14 UTC | |
|
Re: Reading binary data
by dws (Chancellor) on Jan 30, 2001 at 05:52 UTC |