in reply to Using foreach on a hash passed to a subroutine
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using foreach on a hash passed to a subroutine
by carcassonne (Pilgrim) on Sep 13, 2009 at 16:29 UTC |