in reply to Re: I hate the leading underscores.
in thread I hate the leading underscores.

You mean instead of

my %dispatch; $dispatch{foo} = sub { ... }; $dispatch{bar} = sub { ... }; ...
?-)

Jenda
We'd like to help you learn to help yourself
Look around you, all you see are sympathetic eyes
Stroll around the grounds until you feel at home
   -- P. Simon in Mrs. Robinson

Replies are listed 'Best First'.
Re^3: I hate the leading underscores.
by blazar (Canon) on Feb 16, 2005 at 14:20 UTC
    I mean like this:
    my %dispatch=(FOO => \&_foo, BAR => \&_bar, # ... LAST => \&_last); # And at the end of the script: sub _foo { # ... } sub _bar { # ... } # ...
    (Yes, I may have done as suggested by you instead.)