in reply to Re^5: Preferred technique for named subroutine parameters?
in thread Preferred technique for named subroutine parameters?

But surely the point is that if you pass a reference (to whatever, and however generated) as the value of a named parameter in the  func({ foo => [ 1, 2 ] }); scheme, then there is no problem whatever.

Replies are listed 'Best First'.
Re^7: Preferred technique for named subroutine parameters?
by LanX (Saint) on May 23, 2009 at 02:40 UTC
    Correct, but the whole discussion is about passing keys not values!

    Cheers Rolf

      My apologies. I thought the whole discussion was about the preferred technique for passing named subroutine parameters: the names wind up being hash keys, i.e., strings, and the parameters wind up being hash values, i.e., anything that can be represented as a scalar, including a reference.

      Another point about which I am still confused is "Try using a reference as a hash key ... " in the reply Re^3: Preferred technique for named subroutine parameters? by akho.

        Correct, the thread is about "passing named subroutine parameters"!

        In our = (you, akho, me) whole discussion it's about particularly passing hash keys. If have no clue why your switching the topic now to hash values (?)

        Concerning your confusion ... what's not clear about my first answer? -> Re^5: Preferred technique for named subroutine parameters?

        Cheers Rolf