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
ailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 4:47 PM To: '[EMAIL PROTECTED]' Subject: quick question on internal data structure Hi all, I have a 2 questions about the internal representation of a hash or array. Consider this piece of code: 1) sub PassHash { my (%hash) = @_

quick question on internal data structure

2003-07-29 Thread Lodewijks, Jeroen
Hi all, 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 internally? Will the whole contents of the hash be copied in memory? O