tigervamp has asked for the wisdom of the Perl Monks concerning the following question:
I do not understant what the author means by "mixing" record mode and line mode. Either you read a file x bytes at a time, or you read it one line at a time,by whatever you want to call a line with the record separator, right? Am I missing something here? Is it possible to say, read up to 4096 bytes at a time, or up to a newline, whichever comes first by assigning a value to the $/ variable?
If I say $/=\128, does that literally mean read the file 128 bytes at a time, or something else?
I greatly appreciate any help in clearing this up,
tigervamp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: the Record Separator Variable
by iakobski (Pilgrim) on May 25, 2001 at 12:39 UTC | |
|
Re: the Record Separator Variable
by bikeNomad (Priest) on May 25, 2001 at 19:43 UTC |