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
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
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) = @_
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