in reply to $/ usage
If you were expecting the $/="\n"; at the end of your one-liner to do something, that's your problem. That step doesn't do anything.
The undef $/; at the beginning does make sure that all the data in your list file gets slurped into $text, so when you do print $text; you should see the full content of the list, in its original form (as stored in the file).
Did you want to see something different from that?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: $/ usage
by mimiandi (Novice) on Jan 02, 2013 at 21:54 UTC | |
by graff (Chancellor) on Jan 02, 2013 at 22:44 UTC |
In Section
Seekers of Perl Wisdom