Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: what is the function should I need to use for trim white spaces ?

by blazar (Canon)
on Jan 12, 2006 at 11:00 UTC ( #522664=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($_ = $before) =~ s/^\s+|\s+$//g;
    
  2. or download this
    local $_ = $before;
    s/^\s+|\s+$//g;
    
  3. or download this
    (my $after = $before) =~ s/^\s+|\s+$//g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-05-31 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?