Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   using Getopt::EvaP module to parse command arguments (http://www.go4expert.com/forums/using-getoptevap-module-parse-command-t4453/)

munkyeetr 28May2007 17:52

using Getopt::EvaP module to parse command arguments
 
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.

munkyeetr 31May2007 21:54

Re: using Getopt::EvaP module to parse command arguments
 
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.

munkyeetr 1Jun2007 00:16

Re: using Getopt::EvaP module to parse command arguments
 
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

shabbir 1Jun2007 09:57

Re: using Getopt::EvaP module to parse command arguments
 
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.


All times are GMT +5.5. The time now is 21:07.