in reply to Returning Hashes

You're going to need to use references.
## Note-- do not copy and paste! Read perlman:perlref. sub get_stuff { return (\@array, \%hash); } ($array_ref, $hash_ref) = get_stuff; @newarray = @$array_ref; %hash = %$hash;

Or instead of doing the second copy, use the references as-is:

($array_ref, $hash_ref) = get_stuff; my $first_element = $array_ref->[0]; my $thingy = $hash_ref->{'thingy'};

Read perlman:perlref.

stephen