Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: removing \n with for each

by Happy-the-monk (Monsignor)
on Jun 13, 2013 at 13:32 UTC ( #1038738=note: print w/ replies, xml ) Need Help??


in reply to removing \n with for each

my @lines=<FILE>;

chomp(my @lines=<FILE>); # should remove your newlines.

Cheers, Sören

(hooked on the Perl Programming language)


Comment on Re: removing \n with for each

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-07-25 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls