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 >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, is there any other simple way?? or do i have to loop myself >through the regexp with if (@array =~ /regexp/)..etc? > > //Dave > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]