in reply to Re^3: Named captures or positional variables
in thread Named captures or positional variables

Declaration can be worked around using parser hacks. That's what Object::Util does. It declares and populates lexical variables for the caller. (Though it falls back to package variables if it's unable to do the parser hacking stuff.)

  • Comment on Re^4: Named captures or positional variables