in reply to Re^3: using constants in regex/search
in thread using constants in regex/search
use strict; use constant NAME => 'abc'; if ($ARGV[0] =~ /${\NAME}/) { print "match"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: using constants in regex/search
by JavaFan (Canon) on Dec 03, 2008 at 10:11 UTC | |
by spmlingam (Scribe) on Dec 03, 2008 at 12:53 UTC |