In the # example 2 line you have 4 single quotes - that's your problem.
If you had used strict and warnings - Perl would have told you this.
Change $hash{'constant'} to one of:
$hash{constant} $hash{q(constant)} $hash{"constant"} $hash{qq(constant)}
Regards,
PN5
In reply to Re: Regex Variable Substitution
by Prior Nacre V
in thread Regex Variable Substitution
by micronx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |