Any help is appreciated.foreach (@nums){ push (@even, $_) if /\/2/; #match all numbers that are even push (@odd, $_) if /^\/2/; #match all odd numbers }
In reply to Match all Odd and Even Numbers by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |