in reply to Re^2: command line switches (array)
in thread command line switches (array)

Yes, even you can use CPAN.

(Unless this is a homework assignment, which should have been disclosed.)

Replies are listed 'Best First'.
Re^4: command line switches (array)
by Corion (Patriarch) on Nov 01, 2010 at 13:47 UTC

    Oh. I thought that Getopt::Long was in the core, but it seems it actually isn't but only Getopt::Std. So the OP will have to make-do with that.

      Your first insticts were correct: Getopt::Long is a Core module (so there is no need to download it from CPAN) and has been for a Long time (just ask corelist):
      corelist Getopt::Long Getopt::Long was first released with perl 5
Re^4: command line switches (array)
by blackice69 (Initiate) on Nov 01, 2010 at 13:49 UTC
    ya no this isn't a home work assignment. This is a task from work which has been given to me but unfortunately they will not install any modules, none what soever and will not give me access to anything except to write this script.. ultimatly what it does is parses a logfile and useraccounts file and searches for certain strings such as times and usernames. I have never done perl before but yet I am being told to do this! anything would be of help! anything..
      This is a task from work which has been given to me but unfortunately they will not install any modules, none what soever and will not give me access to anything except to write this script.. ultimatly what it does is parses a logfile and useraccounts file and searches for certain strings such as times and usernames. I have never done perl before but yet I am being told to do this!
      Sounds you either have to grow up, or find another job.