[EMAIL PROTECTED] (Larry Wall) writes:
Of course, generations of Perl programmers have
made do with various forms of s///,
I have found String::Strip on CPAN to work well for my needs in this
area.
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,
Hey all, not sure if I'm just missing some obvious source of
information, but I used trim() as a function in a cookbook example,
then realized that it's not even in S29...
There is a brief mention of trim(), as well as words() (odd as the
words() function may seem, to me at least), at
gcomnz wrote:
Hey all, not sure if I'm just missing some obvious source of
information, but I used trim() as a function in a cookbook example,
then realized that it's not even in S29...
There is a brief mention of trim(), as well as words() (odd as the
words() function may seem, to me at least),
Rod Adams wrote:
Well, some form of words() exists... only spelled q:w//, with various
doublings of q and w available, some of which can be spelled or «»,
though to be honest, I've lost track of how often the meanings of those
as quoters has changed. I suspect S02 or S03 would have that
I agree, with my (probably wrong) impression that words() was a split
a string into words function, I was thinking to myself bloat, but
then I was also reminding myself that Perl's power as a natural
language text processor has always been a premium feature (somehow
even prior to full
On Tue, Apr 12, 2005 at 09:52:38PM -0500, Rod Adams wrote:
: gcomnz wrote:
:
: Hey all, not sure if I'm just missing some obvious source of
: information, but I used trim() as a function in a cookbook example,
: then realized that it's not even in S29...
:
: There is a brief mention of trim(),