Yeah, string eval can be dangerous :)
You want to use String::Interpolate::RE , or if you want more on Corion/tobyink's manual approach, see printig with variables in text , simple regular expression , s/// treat rhs as regex , string interpolation at the hop )
In reply to Re^2: my $scope as the default for variables
by Anonymous Monk
in thread Please help me print this hash.
by Je55eah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |