Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: removing \n with for each

by Happy-the-monk (Abbot)
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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038738]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-12-09 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.