in reply to Re: calling subroutines from variables
in thread calling subroutines from variables

Thanks, I will try the building the hash. I was looking at that and wanted to see if there were other options. For this particular problem that is the way to go.
Thanks, B
  • Comment on Re^2: calling subroutines from variables

Replies are listed 'Best First'.
Re^3: calling subroutines from variables
by gone2015 (Deacon) on Aug 21, 2008 at 18:01 UTC

    Of course, if you have a lot of subroutines, you may still want symbolic refs to help construct the hash:

    my %dispatch = map { ; no strict 'refs' ; ($_, \&$_) } qw(sub1 sub2 +sub3 ...) ;