Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Sunday October 07, 2007
09:35 AM

wantarray(2)

[ #34625 ]

I want to be able to do this:

if ( wantarray(2) ) { ... }

Like caller, you could specify how many frames back you want to test. I find I need that at times when I'm refactoring. wantarray doesn't allow you to do this. However, in looking at the Want module, I've discovered that there is an undocumented function called want_uplevel. This may be exactly what I need!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.