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
In reply to Re: need help using split()
by merlyn
in thread need help using split()
by deryni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |