Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl appears to be dropping last character of line

by perl-diddler (Chaplain)
on Dec 06, 2019 at 02:53 UTC ( [id://11109718]=note: print w/replies, xml ) Need Help??


in reply to Perl appears to be dropping last character of line

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...

  • Comment on Re: Perl appears to be dropping last character of line

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (11)
As of 2024-04-18 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found