in reply to Re^2: strict refs
in thread strict refs
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();
|
|---|