using Getopt::EvaP module to parse command arguments

Go4Expert Member
28May2007,17:52   #1
munkyeetr's Avatar
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.
Go4Expert Member
31May2007,21:54   #2
munkyeetr's Avatar
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.
Go4Expert Member
1Jun2007,00:16   #3
munkyeetr's Avatar
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
Go4Expert Founder
1Jun2007,09:57   #4
shabbir's Avatar
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.