Re: trim() and words() functions?

2005-04-16 Thread Terrence Brannon
[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.

Re: trim() and words() functions?

2005-04-13 Thread Juerd
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,

trim() and words() functions?

2005-04-12 Thread gcomnz
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

Re: trim() and words() functions?

2005-04-12 Thread Rod Adams
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),

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
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

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
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

Re: trim() and words() functions?

2005-04-12 Thread Larry Wall
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(),