Welcome to the Monastery | |
PerlMonks |
Re^2: Sub ref from string without evalby moritz (Cardinal) |
on Apr 02, 2012 at 15:01 UTC ( [id://963032]=note: print w/replies, xml ) | Need Help?? |
\&{$x} works perfectly fine with strict refs. It is only implicit usage of strings as references that is prohibted by strict refs. If you go to the length of writing \&{ ... }, perl assumes a symbolic reference is indeed what you want.
In Section
Seekers of Perl Wisdom
|
|