use strict; use constant NAME => 'abc'; if ($ARGV[0] =~ /${\NAME}/) { print "match"; };
In reply to Re^4: using constants in regex/search
by spmlingam
in thread using constants in regex/search
by geniezlife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |