--- Stephen LeClaire <[EMAIL PROTECTED]> wrote:
> Does anyone have a slick way to grab up these characters (\W) and slap
> them into an array?
>
> Thanks,
>
> Steve
Steve,
On the off chance that you meant non-word characters (\W) that you mentioned in your
email instead
of the non-whitespace that you specified in your subject:
my $string = '123 ()$ hi there *** ___ <>';
my ( @array ) = ( $string =~ /(\W+)/g );
Cheers,
Curtis "Ovid" Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]