my( @ok, @no ); push @{ $_->name =~ /\d{2}$/ ? \@ok : \@no }, $_ for @{ $rec->vals }
Update: Heh, I was going to mention Ruby as well.
In reply to Re: Splitting array into two with a regex
by Fletch
in thread Splitting array into two with a regex
by jredburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |