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