Welcome to the Monastery | |
PerlMonks |
Re^2: Line number in a fileby pelagic (Priest) |
on Jul 06, 2004 at 09:39 UTC ( [id://372051]=note: print w/replies, xml ) | Need Help?? |
> It all depends upon the value of $/, the record separator variable. Of course if you read a file in slurp mode you actually just read 1 record and the official name INPUT_LINE_NUMBER is somewhat misleading because lines become a logical measure. And if you set $/ to some weird separator the meaning of line is actually set to something completely different. pelagic
In Section
Seekers of Perl Wisdom
|
|