in reply to regex to return matched value from array

I'm not sure why you are using $_ in the grep within the if block, but if you use $term as you did originally it will work.

May the Force be with you

Replies are listed 'Best First'.
Re^2: regex to return matched value from array
by rsiedl (Friar) on Sep 22, 2004 at 15:10 UTC
    ahh of course. thankyou.

    the problems with cut and paste...