using Getopt::EvaP module to parse command arguments

Discussion in 'Perl' started by munkyeetr, May 28, 2007.

  1. munkyeetr

    munkyeetr New Member

    Joined:
    May 4, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Victoria BC, Canada
    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:
    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.
     
  2. munkyeetr

    munkyeetr New Member

    Joined:
    May 4, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Victoria BC, Canada
    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.
     
  3. munkyeetr

    munkyeetr New Member

    Joined:
    May 4, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Victoria BC, Canada
    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
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You will be allowed when you reach the number of posts to double digit. I have done the edit for you as of now.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice