in reply to passing paramters to a sub

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

Replies are listed 'Best First'.
Re^2: passing paramters to a sub
by ambrus (Abbot) on Aug 30, 2005 at 12:21 UTC

    You must surely mean %{$_[0]}, not %$_[0].