Do you know where your variables are? | |
PerlMonks |
Re: using variables in late contexts?by robartes (Priest) |
on Nov 26, 2002 at 22:37 UTC ( [id://215955]=note: print w/replies, xml ) | Need Help?? |
Your code should work, except that you need to replace:
by You are refering to the value of a hash entry, not the hash itself, that's why you need $. 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. CU
In Section
Seekers of Perl Wisdom
|
|