my $thescalar = shift; # 1st parameter goes in $thescalar my %thehash = @_; # everything else goes in %thehash