Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Getopt::Long to define or not to define?

by shemp (Deacon)
on Mar 07, 2005 at 23:27 UTC ( [id://437344]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Getopt::Long to define or not to define?
in thread Getopt::Long to define or not to define?

Yes, actually, i am saying that there are cases where this is useful. One i just thought of that doesnt actually apply to input, but rather to return values is the built-in wantarray(). The return values are as follows

undef if the sub was called in void context
defined but false if the sub was called in scalar context
true is the sub was called in list context.

  • Comment on Re^4: Getopt::Long to define or not to define?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found