(Yes, I may have done as suggested by you instead.)my %dispatch=(FOO => \&_foo, BAR => \&_bar, # ... LAST => \&_last); # And at the end of the script: sub _foo { # ... } sub _bar { # ... } # ...
In reply to Re^3: I hate the leading underscores.
by blazar
in thread I hate the leading underscores.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |