Hello,
Are you sure that
%THE_COMMANDS( open => &dosomething );
is not
%THE_COMMANDS( open => \&dosomething );
The \ in front of the & makes $THE_COMMAND{open} a code reference. And
the way you dereference a code ref is with the -> operator. It's the
same as if I did.
my $open
Hi,
I am the "maintenance programmer" for this large chunk of code. My
question is particular to this syntax:
$THE_COMMANDS{$THE_COMMAND}->($THE_COMMAND);
Where THE_COMMANDS is a hash
%THE_COMMANDS( open => &dosomething );
Thus, $THE_COMMANDS{$THE_COMMAND} is nothing but &dosomething right?
so wh