Is there an simple way, that if i have an array, to get an simple match with a regexp
to get that out as an variable?
i am thinking in the lines of: $test =~ /matching regexp/, @array
so it know what array it should look for this particular $test value matched by the
regexp? that didnt work,
If I understand correctly you want to match a regexp for every element
in an array
use
@newarray = grep{/regex/} @array;
@newarray will get u all elements of array which match regex
David Samuelsson wrote:
> Is there an simple way, that if i have an array, to get an simple match with a
>re