We don't bite newbies here... much | |
PerlMonks |
Re: Perl appears to be dropping last character of lineby perl-diddler (Chaplain) |
on Dec 06, 2019 at 02:53 UTC ( [id://11109718]=note: print w/replies, xml ) | Need Help?? |
Your code doesn't really show us how you read in the data.
I'm wondering if it was read in a while loop followed by a 'chop' (or two), when a chomp might be safer. Where's the routine that reads this from disk and how are the lines passed to this routine? Is this on unix (or linux) or on Windows or what? I doubt it is related, but different systems use different line endings...
In Section
Seekers of Perl Wisdom
|
|