Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^7: wantarray alternative

by LanX (Bishop)
on Jul 10, 2013 at 21:10 UTC ( #1043567=note: print w/replies, xml ) Need Help??


in reply to Re^6: wantarray alternative
in thread wantarray alternative

> The solution I'd prefer to implement would return Jim.

so first code-example in Re: wantarray alternative (Context propagation)

> But the most robust answer would probably be to throw an exception.

so check wantarray to do so

Cheers Rolf

( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043567]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-06-23 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?