We don't bite newbies here... much | |
PerlMonks |
Re^3: Iterator to parse multiline string with \\n terminatorby tinita (Parson) |
on Oct 06, 2013 at 12:46 UTC ( [id://1057143]=note: print w/replies, xml ) | Need Help?? |
return $line unless $line;make that: return $line unless defined $line; theoretically the last line could be missing the newline and only contain "0". then $line would be false and ignored with your code.
In Section
Seekers of Perl Wisdom
|
|