There's more than one way to do things | |
PerlMonks |
Re^4: odd behavior with DATA sectionby Nkuvu (Priest) |
on Jul 25, 2005 at 17:30 UTC ( [id://477914]=note: print w/replies, xml ) | Need Help?? |
Printed out the value of $line before and after chomp-ing, and it looked just like I expected. With a single newline before, and no newline after. The return value of chomp is the number of things chomped, so I expected a 1. I got a 1. No surprises there.
In Section
Seekers of Perl Wisdom
|
|