Keep It Simple, Stupid | |
PerlMonks |
Re: $/ variableby reyjrar (Hermit) |
on Aug 21, 2001 at 21:15 UTC ( [id://106649]=note: print w/replies, xml ) | Need Help?? |
Well, $/ is the input record seperator, its what things like <> use to determine when to iterate to the next record. Default is "\n". some examples:
A outputs: blah;hi;blah; B outputs: blah; hi; blah; If you're interessted in changing this value, you might also look at split() which is generally safer to use (especially if you're not using strict and warnings). -brad..
In Section
Seekers of Perl Wisdom
|
|