Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Strings mangled on printing

by sn1987a (Chaplain)
on Jun 04, 2015 at 14:56 UTC ( #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
Node Status?
node history
Node Type: note [id://1129092]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2019-04-21 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (111 votes). Check out past polls.

    Notices?