References are your friend:
my ( $array, $hash ) = get_stuff(); foreach my $item ( @{ $array } ) { print "$item!\n"; } foreach my $key ( keys %{ $hash } ) { print "$key: $hash->{ $key }\n"; } ... sub get_stuff { ... return ( \@array, \%hash ); }
Check out perldoc perlref for the straight dope.
Chris
M-x auto-bs-mode
In reply to Re: Returning Hashes
by lachoy
in thread Returning Hashes
by blackjudas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |