gcomnz skribis 2005-04-12 16:46 (-0700):
> [words() and trim()]

I thought split'd still split on /\s+/ by default? $string.split is easy
to use, and because join uses ' ' by default (this is my interpretation
of the /lists in scalar context/ thread), $string.split.join trims all
excess whitespace, even between words. Handy :)

trim would be nice though, because I miss BASIC's ltrim and rtrim.
Perhaps those can be written as trim(:left) and trim(:right),
abbreviated to trim :l and trim :r?


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to