Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: checking $option

by leslie (Pilgrim)
on Jun 26, 2009 at 05:13 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-08-17 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?