Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Checking return context, beyond wantarray()

by ccn (Vicar)
on Jul 14, 2004 at 20:21 UTC ( [id://374427]=note: print w/replies, xml ) Need Help??


in reply to Checking return context, beyond wantarray()

wantarray returns
  • undef value in void context (your CASE 2)
  • true in list context
  • defined false in scalar context

see perldoc -f wantarray

  • Comment on Re: Checking return context, beyond wantarray()

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-24 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found