in reply to Re^2: Trouble passing hash into function
in thread Trouble passing hash into function

You would have to put a backslash in front of it normally, but because you've prototyped your sub Perl takes the reference for you behind the scenes and you receive that ref in $_[0] rather than the normal behavior of the hash being flattened into a list and you getting the key/value pairs in @_.

Of course one might feel inclined to yet again comment on the undesirability of prototypes, but I'm getting weary of doing so . . .

Replies are listed 'Best First'.
Re^4: Trouble passing hash into function
by dbonneville (Acolyte) on Sep 06, 2007 at 00:39 UTC
    Thanks! I'll have to read up on prototypes. I barely follow the logic of why my program works at all at the moment.

    Doug