Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Returning undef: The point I would like Damian to reconsider

by merlyn (Sage)
on Jun 23, 2007 at 18:13 UTC ( [id://623002]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Returning undef: The point I would like Damian to reconsider
in thread Returning undef: The point I would like Damian to reconsider

use Contextual::Return; use Carp qw(croak); ... sub foo { ... return LIST { some listy expression here } SCALAR { croak "please invoke me in a list context" } ; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://623002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found