Hello Satish,

> I am trying to use Getopt::Long.  I wrote a simple
> script and testing it.  Why is the script running
> without me having to specify any arguments?  I thought
> the = was so that the option is mandatory but it is
> not working that way.  I am
> hoping that it will not run (so that when user runs it
> without arguments, script will stop).


I faced the same problem several days ago. I asked colleague of mine and he
confirmed that he has fased this problem too. I don't know is it bug or
feature, but even if you're using "=" as parameter qualifier and you don't
supply this parameter to you script, corresponding variable gets value ""
and programm run further!

BTW, what version of perl you're using? We're using here 5.005_03, and I
think that maybe in latest perl version  Getopt::Long works correctly.

HIH,
Tim
----------------------------------------------------------------
(EXTERN) CHAKIROV, Timour (TZ CIS / DS ESQ3)

Robert Bosch GmbH          Tel:     +49 (0) 711-811- 3 00 48
Postfach 30 02 20          Fax:     +49 (0) 711-811- 3 18 00 
D-70442 Stuttgart          e-mail: [EMAIL PROTECTED]
Besucher: Wernerstr.51, Fe533/3, D-70469 Stuttgart-Feuerbach

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to