"be consistent" | |
PerlMonks |
Re: $/ usageby graff (Chancellor) |
on Jan 02, 2013 at 21:41 UTC ( [id://1011357]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|