in reply to Re: Sending an anonymous hash to a sub
in thread Sending an anonymous hash to a sub

Superfluous nitpick: that this doesn't really pass an anonymous hash either. It passes a list (=> really is nothing more than a glorified comma, after all) which gets shoehorned into a hash by my %person = @_;.

Replies are listed 'Best First'.
Re: Re: Re: Sending an anonymous hash to a sub
by bobn (Chaplain) on Sep 03, 2003 at 04:09 UTC

    Superfluous nitpick that this doesn't really pass an anonymous hash either. It passes a list

    Which is interpreted as a hash if that's what the receiver is looking for. Hashes and lists are often indistinguishable, as long as the number of entries is even.

    I'll concede that I'm not sure of all the stuations that this applies to - but it works in this case.

    --Bob Niederman, http://bob-n.com

    All code given here is UNTESTED unless otherwise stated.