if ($input =~ /${\NAME}/) { print "Matched!"; } [download]
In reply to Re^2: using constants in regex/search by spmlingam in thread using constants in regex/search by geniezlife