in reply to Re: more fun with references and hashes
in thread more fun with references and hashes

It is possible to return a hash...
#!perl -w use strict; use Data::Dumper; sub test { my %hash = ( a => 1, b => 2, c => 3, ); return %hash; } my %got_this = &test; print Dumper( \%got_this );
The hash returned is simply a list that happens to have an even number of values (and unique values in the key positions 0,2,4,6,8etc.).

"Argument is futile - you will be ignorralated!"