Strictures are lexically scoped, so if you turn them off in a small block, you are pretty safe.
This particular example happens in a small foreach loop, so there's your block. If you're in the middle of a longer sequence, you can say
do_stuff(); { no strict 'refs'; printf "%s=%d\n", $_, &{"DBI::$_"}; } do_more_stuff();
In reply to Re^3: strict refs
by Narveson
in thread strict refs
by LesleyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |