using Getopt::EvaP module to parse command arguments

munkyeetr's Avatar, Join Date: May 2007
Go4Expert Member
I'm new to PERL, and am trying to use the Getopt::EvaP module to parse my command-line arguments, but I am a little lost as to how to make this work.

So far I have downloaded and installed the module, and added the following to my script:
Code: perl
use Getopt::EvaP;

Now, I'm not sure where I add the PDT syntax; does this go in my script, or is it an external file? So there's PDT, MM, and OPT that I need to specify to make this work.

Could someone please post a very basic working example of using this module, so that I can get a handle on how I can make it work in my script?

Any help would be very appreciated.
0
munkyeetr's Avatar, Join Date: May 2007
Go4Expert Member
Hmm. No replies.

Well, just in case anyone else is having this problem and search and find this thread I fixed my problem by using the Getopt::Long module instead (available at http://www.cpan.org)

For documentation go to http://perldoc.perl.org/Getopt/Long.html

It's pretty straight forward.
0
munkyeetr's Avatar, Join Date: May 2007
Go4Expert Member
EDIT - from last post (you should really allow editing of posts):

the link to the Getopt::Long module is wrong, it should be http://www.cpan.org
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by munkyeetr
EDIT - from last post (you should really allow editing of posts):
You will be allowed when you reach the number of posts to double digit. I have done the edit for you as of now.