![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: checking $optionby targetsmart (Curate) |
on Jun 26, 2009 at 05:02 UTC ( #774913=note: print w/replies, xml ) | Need Help?? |
from defined Returns a Boolean value telling whether EXPR has a value other than the undefined value undef. If EXPR is not present, $_ will be checked. you are getting a true boolean value 1, which means when the option is present, you are just storing the return value of defined($options{o}) try ? :
Vivek -- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
In Section
Seekers of Perl Wisdom
|
|