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

yeah but unfortunately they say you can do it without it using just an array and etc.

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

    I guess you will have to program the business logic of what parameters are required in which combinations yourself.

Re^3: command line switches (array)
by Anonymous Monk on Nov 01, 2010 at 13:44 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
      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.