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

Re: checking $option

by leslie (Pilgrim)
on Jun 26, 2009 at 05:13 UTC ( [id://774915]=note: print w/replies, xml ) Need Help??


in reply to question about getopt

Dear friend,
Check the defined method.It always return boolean value.. 
If values already defined it will return "true(1)" else "false".
 If $option is not define it will take the file name and assigned to that variable..
If already defined it will return 1. So u will get 1 as a value..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found