Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: "chomp" not working

by JavaFan (Canon)
on May 02, 2012 at 23:45 UTC ( #968587=note: print w/replies, xml ) Need Help??


in reply to Re^2: "chomp" not working
in thread "chomp" not working

There is a carriage return at the end of each line. @arr1 before the chomp should like like above when printed out.
You are splitting on newlines. Why do you expect them to still be there?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968587]
help
Chatterbox?
and the pool shimmers...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-02-24 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (363 votes). Check out past polls.