in reply to Re: passing subroutine args as a hash: why not?
in thread passing subroutine args as a hash: why not?
Your post is correct, but there's no reason you can't 'sprinkle in' positional parameters with a plain hash either. Consider:
sub sprinkled_in { my $sprinkle1 = shift; my $sprinkle2 = shift; my %unsprinkled = @_; }
|
|---|