in reply to Reference Example

For the purposes of your example, the first two steps can be condensed into one. Rather than create a hash and then create a reference to it:
%animals = ('donald'=>'duck', 'mickey'=>'mouse', 'cheshire'=>'cat'); $fer = \%animals;
Create a reference to an anonymous hash like so:
$fer = {'donald'=>'duck', 'mickey'=>'mouse', 'cheshire'=>'cat'};
This will accomplish the same thing.
_______________
D a m n D i r t y A p e
Home Node | Email