Help for this page
use constant NAME => "abc"; # read some user input ... # I need to check if the input string contains my constant # Something like the following is what I need: if ($input =~ /NAME/) { print "Matched!"; }
my $name = NAME; if ($input =~ /$name/) { ... }