So I can do this:
and that " %person = %{+shift}; " thing is just the above, compressed into a one-liner -- is that right? Something about the plus sign just looks so weird to me...sub describe { $ref = shift(); my %person = %{$ref}; print "$person{name} is a $person{job}" }
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print
In reply to Re: Re: Sending an anonymous hash to a sub
by Cody Pendant
in thread Sending an anonymous hash to a sub
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |