The following works for me:
use strict; use warnings; my $hashref = { 1 => 'c' }; print "success" if "success" =~ /$hashref->{1}/;
In reply to Re: Dereference inside a regex
by hdb
in thread Dereference inside a regex
by tobias_hofer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |