Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi!
Eeehm you might want to put ' thingies around your keys aswel that hash, that might help and for B: I'd think this'd work: sub do_this_cool_function(@) { my %Param=@_; # Now address your params like this: my $When=$Param{'-retire'}; my $Wages=$Param('-payscale'}; my $Favourite_temperature=$Param{'-pizza'}; } That's how I'd do it. In reply to RE: Passing named parameters
by ChOas
|
|