Re: quick question on internal data structure

2003-07-29 Thread Rob Dixon
Hi John. I may be misunderstanding you, but this doesn't look right to me. John W. Krahn wrote: > Jeroen Lodewijks wrote: > > > > 1) > > > > sub PassHash > > { > > my (%hash) = @_; > > > > $hash{$some_key} = 'test'; > >... > > } > > > > PassHash(%hash); > > > > What happens internally

Re: quick question on internal data structure

2003-07-29 Thread John W. Krahn
Jeroen Lodewijks wrote: > > Hi all, Hello, > I have a 2 questions about the internal representation of a hash or array. > Consider this piece of code: > > 1) > > sub PassHash > { > my (%hash) = @_; > > $hash{$some_key} = 'test'; >... > } > > PassHash(%hash); > > What happens int

RE: quick question on internal data structure

2003-07-29 Thread Marcos . Rebelo
I sink the are copied in boat places for the first teste this code use Data::Dumper; sub PassHash { my (%new_hash) = @_; $new_hash{a} = 3; } my %hash = (a=>1, b=>2); PassHash(%hash); print Dumper(\%hash); ::