Assuming $config{units}{yourUnit}{interfaces} is a reference to a hash, then \$config{units}{yourUnit}{interfaces} is a reference to a reference to a hash. So you'd have to use ...(keys %{$$h}). I guess you want to drop the backslash.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Using foreach on a hash passed to a subroutine
by Jenda
in thread Using foreach on a hash passed to a subroutine
by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |