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
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);
::