Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: How do I quickly strip blank space from the beginning/end of a string?

by blahblahblah (Priest)
on Jul 22, 2009 at 01:12 UTC ( [id://782138]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($x =~ /\s/)
    
  2. or download this
    if (substr($x, -1) =~ /^\s/
    
  3. or download this
    if (rindex($x," ") == 0 || rindex($x,"\r") == 0 ||  rindex($x,"\n") ==
    + 0 ||  rindex($x,"\t") == 0)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found