Could it not be easier to cure the disease instead of camouflaging the symptoms? I don't know how much of a redesign of your code this would take, but why not work with anonymous functions and real references instead of symbolic references? E.g.:
use strict; my $funcref=sub { print "My camel is shopping for flea deterrent.\n"; }; &$funcref; # Note absence of no strict 'refs'
This way, there's no need to bounce up and down on the no strict 'refs'.
CU
Robartes-
In reply to Re: strict refs on / off process time
by robartes
in thread strict refs on / off process time
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |