Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: TRIM in Perl?

by Aristotle (Chancellor)
on Sep 10, 2002 at 16:21 UTC ( [id://196735]=note: print w/replies, xml ) Need Help??


in reply to Re: TRIM in Perl?
in thread TRIM in Perl?

Occasionally also written as s/^\s+|\s+$//g;

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^2: TRIM in Perl?
by samurai (Monk) on Sep 12, 2002 at 13:28 UTC
    I did some benchmarking, and I am absopositively amazed at how much faster that is than two s//'s. 3-4 times faster in my tests. Thank you very much for that one.

    --
    perl: code of the samurai

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found