http://www.perlmonks.org?node_id=135787


in reply to Is it Possible to match contents in hash via a Regex?

Cool!
I didn't know that you could put a regex into an array! That will make my script a lot cleaner...THANKS! Yeah, I can't believe I forgot that...
@fld = split / /; if ($_ =~ "regex/); print "$1 $2, etc";
THANKS MONKS!

The Brassmon_k