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

Re^4: Strings mangled on printing

by sn1987a (Deacon)
on Jun 04, 2015 at 18:56 UTC ( [id://1129092]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Strings mangled on printing
in thread Strings mangled on printing

Actually, $inp =~ s/\s$//; will remove only a single whitespace character at the end of the line.

Use $inp =~ s/\s+$//; to remove all of them.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found