That's because in line two you're referring to using the package variable %lib when you mean to be dereferencing the hashref you've got: $lib->{'foo'}.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: foreach problem
by Fletch
in thread foreach problem
by dsula
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |