whatever(\%list, $val); ... sub whatever { my %list = %{$_[0]}; my $val = $_[1]; ... }
You should cozy up to a nice cup of coffee (or a cold beer, your choice) and go over perlsub :-)
Update: Of course, ambrus is right. I suppose I need to cozy up and go over perlref again ;-)
In reply to Re: passing paramters to a sub
by Tanktalus
in thread passing paramters to a sub
by jimbus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |