in reply to how to dereference a code reference from a hash value?

For some reason I'm not sure of, you need to do...
my $parser = $parsers{$key}; &$parser($arg);
if you want to do it in that style... -> is just as well, too

                - Ant
                - Some of my best work - Fish Dinner

Replies are listed 'Best First'.
Re: Re: references
by dragonchild (Archbishop) on Sep 11, 2001 at 18:50 UTC
    Or, you could do:
    &{$parser{$key}}($args);

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.