Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: handling different new line charactersby Velaki (Chaplain) |
on Aug 28, 2006 at 15:09 UTC ( [id://569994]=note: print w/replies, xml ) | Need Help?? |
Instead of chomp($line), you could use a regex:
This way you're handling both the CR and the LF. Hope that helped,-v.
"Perl. There is no substitute."
In Section
Seekers of Perl Wisdom
|
|