in reply to executing hash element as command

I don't really understand what you want to do. May be you means to:
foreach my $key (keys %$HR_config) { system $HR_config->{$key}; }

Replies are listed 'Best First'.
Re^2: executing hash element as command
by JavaFan (Canon) on Jul 02, 2009 at 12:10 UTC
    That seems unlikely. That would mean he wants to execute all the commands from the configuration file, in an order that may vary from run to run.

    From both the description and the code it seems he reads in a set of commands (tagged with a name), and then further logic dictates which commands will be run. For instance, the prn sub runs the command tagged CMD_cp.