in reply to Regex Variable Substitution
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
|
|---|