in reply to using variables in late contexts?
by%cmd_table{$test}
You are refering to the value of a hash entry, not the hash itself, that's why you need $.$cmd_table{$test}
Oh, and there is no need for the @testarray (at least not in this snippet): just loop over the keys of %cmd_table, as in:
Hope this helps.foreach $test (keys %cmd_hash) { # do your thing }
CU
Robartes-
|
|---|