sub withNames{ local %_ = @_; ++$_{$_} for keys %_; };;
Try ++$_ for values %_;
:P lol
Yeah, local %_=@_; is not hard to type :)
In reply to Re^6: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs? (ugly++)
by Anonymous Monk
in thread Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
by smls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |