Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: TRIM in Perl?

by Rabenschwinge (Novice)
on Jan 12, 2011 at 10:34 UTC ( [id://881867]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    use warnings;
    ...
            $string =~ s/\s+$//m;
            print "'$string'\n";
    }
    
  2. or download this
    'Test'
    'Test 2'
    'A'
    ...
    line
    string'
    ''
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found