in reply to strict refs
It is documented in strict:foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { my $ref = \&{"DBI::$_"}; printf "%s=%d\n", $_, &$ref; }
Hth,There is one exception to this rule: $bar = \&{’foo’}; &$bar; is allowed so that "goto &$AUTOLOAD" would not break unde +r stricture.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strict refs
by LesleyB (Friar) on Oct 28, 2008 at 09:35 UTC |