btw you can replace your foreach loop with grep:
@test3 = grep { /md/ } @test;
or if you like to be verbose
@test3 = grep {$_ =~ /md/ } @test;
In reply to Re: Seemingly odd issue with push in foreach loops?
by einhverfr
in thread Seemingly odd issue with push in foreach loops?
by akio_outori
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |