Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
$/ questionby convenientstore (Pilgrim) |
on Jan 13, 2008 at 02:29 UTC ( [id://662137]=perlquestion: print w/replies, xml ) | Need Help?? |
convenientstore has asked for the wisdom of the Perl Monks concerning the following question: I thought setting $/ to undef would make record separated by one blank line or more.. and resulted in each record w/ separate line number Instead I am getting number 1 and then entire information being printed. Did I misunderstand the $/ ? or am I looping it wrong?I was expecting a result like this
------------------------------------------
*** UPDATE*** I am confused.. how does differ using $/ in inside of while loop vs outside.. local is immediate block so it should be inside of while loop?
Back to
Seekers of Perl Wisdom
|
|