in reply to need help using split()
my @split = $data =~ /\G(M|T|W|Th|F|Sa|Su|\d)/g; my @days = grep /\D/, @split; my @periods = grep /\d/, @split;
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: need help using split()
by chipmunk (Parson) on Mar 22, 2001 at 02:27 UTC |