Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??

by secret (Beadle)
on Nov 24, 2005 at 09:14 UTC ( #511367=note: print w/replies, xml ) Need Help??


in reply to How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??

Or if you wanted to keep the original string for later :

$nospace = $1 if $string=~m/^\s*(\w+)\s*$/ ; print $nospace ;

  • Comment on Re: How to eliminate white spaces,tabs,new lines at thestart and end of a long string ??
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-02-28 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?