Only when I run this snippet, I get "Not an ARRAY reference at foo.cgi line 7"$fer is a HASH reference not an ARRAY reference. You want curly brackets '{' not square brackets.
Some more advice: learn how to use Data::Dumper. This will enable you to see inside references and deep structures. The first line you print out will not be very meaningful. Data::Dumper's Dumper function will be far more useful.
In reply to Re: Reference Example
by rinceWind
in thread Reference Example
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |