in reply to Re^2: Sub ref from string without eval
in thread Sub ref from string without eval
It is only implicit usage of strings as references that is prohibted by strict refs.
Nope.
$ perl -e'use strict; my $x = "foo"; \${ $x }' Can't use string ("foo") as a SCALAR ref while "strict refs" in use at + -e line 1. $ perl -e'use strict; \${ "foo" }' Can't use string ("foo") as a SCALAR ref while "strict refs" in use at + -e line 1.
\&{ ... } is clearly an exception.
In Section
Seekers of Perl Wisdom