my( %hashgetsthemall, $two, $eleven ) = 1 .. 11;
my( $one, $two, %hashgetstherest ) = 1 .. 12;
is one way to do it if you wanted copies of the values anyway.
The list variable must come last though, and there can be only one.
In the OP's example that is:
my ($source, $target, %hash) = @_;
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
In reply to Re^2: Send hash of hash arguments to sub (Dumper reference my %hash = @_ )
by Happy-the-monk
in thread Send hash of hash arguments to sub
by Dr Manhattan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |