Another way:
(@ok, @no) = ((), ()); map {$_->name =~ /[0-9][0-9]$/ ? push @ok, $_ : push @no, $_} @{$rec-> +vals};
In reply to Re: Splitting array into two with a regex
by GrandFather
in thread Splitting array into two with a regex
by jredburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |