Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by BrowserUk (Pope)
on Oct 25, 2010 at 04:54 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2021-12-06 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (32 votes). Check out past polls.

    Notices?