in reply to Re: problem with Getopt::Long
in thread problem with Getopt::Long

i did what u have mentioned in ur mail, i changed $* to $@ and the result is the same. and one more thing i forgot to meition, when i call the shell script giving command line arguments and pass them to the perl script i see all the command line arguments and options present in the perl command in the shell script, but the thing happening here is that the very first if loop as mentioned in the code ie if (exists $options{x}) { do some thing } is giving positive irrespective of the option passed.... what wud be the problem here

Replies are listed 'Best First'.
Re^3: problem with Getopt::Long
by syedtoah (Initiate) on Aug 20, 2004 at 07:25 UTC
    hey i have got the solution. As i had guessed there was a problem with the "exists". In all the if conditions the exists key word has to be removed for it to work as expectedloops...........any way thanks for contribution.....