sub f { my %hash; @hash{ qw/ h s d / } = @_; # ... }
(That hash slice is equivlent to ($hash{h}, $hash{s}, $hash{d}).)
In reply to Re: passing subroutine arguments directly into a hash
by wog
in thread passing subroutine arguments directly into a hash
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |