in reply to Re: hash question
in thread hash question
and it shows:sub do_something { my $h = shift; print '1. do_something(): ' . $h . "\n"; %{ $h } = ( a => 'alpha', b => 'beta' ); print '2. do_something(): ' . $h . "\n"; print Dumper( $h ); }
The address is not changed ... the behaviour is not consistent to me :)hash = HASH(0x490d30) 1. do_something(): HASH(0x490d30) 2. do_something(): HASH(0x490d30) { 'a' => 'alpha', 'b' => 'beta' } { 'a' => 'alpha', 'b' => 'beta' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hash question
by andal (Hermit) on May 27, 2016 at 07:44 UTC | |
|
Re^3: hash question
by soonix (Chancellor) on May 27, 2016 at 07:00 UTC | |
|
Re^3: hash question
by AnomalousMonk (Archbishop) on May 27, 2016 at 16:12 UTC |