Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: trimming space from both sides of a string

by BrowserUk (Patriarch)
on Oct 25, 2010 at 04:54 UTC ( [id://867138]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a = '           fred and bill        ';;
    Dump $a;;
    ...
      PV = 0x1d3558 "fred and bill"\0
      CUR = 13
      LEN = 40
    
  2. or download this
    $b = '           fred and bill        ';;
    
    ...
        MG_VIRTUAL = &PL_vtbl_mglob
        MG_TYPE = PERL_MAGIC_regex_global(g)
        MG_LEN = -1
    

Log In?
Username:
Password:

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

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

    No recent polls found