in reply to Function refs, and trying to keep strict
I may be wrong, but if I understand your post, I would expect something like this to do what you want while keeping "strict".... for my $test ( @tests ) { if($mask & $byte{$test}) { # (updated: forgot this line initiall +y) eval "\$t->$test() or die"; $mask ^= $byte{$test} if ( $@ ); } } ...
|
|---|