Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: trim leading & trailing whitespace

by graff (Chancellor)
on Mar 30, 2005 at 07:56 UTC ( #443364=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/^\s+//;
    s/\s+$//;
    
  2. or download this
    s/\s*\n\s*/\n/g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-07-30 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls