- or download this
sub new {
...
my %self = %{$_[0]} if ref $_[0];
...
}
- or download this
use strict;
use warnings;
...
print "testref2:" . \%x . "\n";
return(\%x);
}
- or download this
testref1:HASH(0x9f952c4)
testref1:HASH(0x9f952c4)
...
testref2:HASH(0x9f7b7a4)