in reply to Re^2: Is there a wantobject like wantarray?
in thread Is there a wantobject like wantarray?

No, Want isn't even Damian's module. I think you may be thinking of Contextual::Return. Want is far more spooky than that. It examines the OP tree to figure out how the return value is going to be used.

  • Comment on Re^3: Is there a wantobject like wantarray?

Replies are listed 'Best First'.
Re^4: Is there a wantobject like wantarray?
by LanX (Saint) on Sep 26, 2014 at 08:14 UTC
    Oops!

    I read the authors section too quickly, saw Damian's name and thought he gave up maintenance.

    Sorry! :)

    But inspecting the OP tree of the caller? That's possible ?

    Interesting!

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

      "But inspecting the OP tree of the caller? That's possible ?"

      Yeah, it's easy peasy. You just do this. ;-)

        Oh didn't expect XS code ... Rather B magic.

        Damian usually prefers pure Perl or core modules - but yeah right he's not the author! ;)

        Cheers Rolf

        (addicted to the Perl Programming Language and ☆☆☆☆ :)