Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Hidden Newline in Result

by Corion (Patriarch)
on Mar 05, 2017 at 19:05 UTC ( [id://1183707]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        chomp($line);
    
  2. or download this
        $line =~ s![\r\n]+$!!; # just newlines
        $line =~ s!\s+$!!;     # all kinds of whitespace
    

Log In?
Username:
Password:

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

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

    No recent polls found