Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re:x2 split every second word (don't use a single s/// to trim both ends of a string)

by grinder (Bishop)
on Dec 04, 2003 at 17:05 UTC ( [id://312252]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $text =~ s/^\s+//g;
      $text =~ s/\s+$//g;
    
  2. or download this
    #! /usr/local/bin/perl -w
    
    ...
    one_short  61836/s      341%        --      -61%      -61%
    two_short 158025/s     1027%      156%        --       -1%
    two_long  160000/s     1041%      159%        1%        --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-20 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found