in reply to Is there a wantobject like wantarray?

OK, I just found out the CPAN module Want which does exactly this.
  • Comment on Re: Is there a wantobject like wantarray?

Replies are listed 'Best First'.
Re^2: Is there a wantobject like wantarray?
by Your Mother (Archbishop) on Sep 25, 2014 at 16:01 UTC

    FWIW, choroba’s approach, stringification through overload is easy, somewhat popular, and though it has a gotcha here and there, I appreciate it much more than I am irritated by it.

    Want is a bit magical, has a handful of segfault tickets open on it, and I’ve never seen it used anywhere in the wild.

      > somewhat popular ...

      may I ask where? :)

      Cheers Rolf

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

        I use it so it must be popular!

        URI , Path::Class (update: should mention Path::Tiny too as it’s starting to replace the Path::Class stuff for me), a bunch of Mojo stuff come to mind… a good handful of others in my tree. :P

        ack use\ overload /usr/local/lib/perl5/site_perl/5.18.2/ | ack '""' | +wc -l 74