in reply to Re: More on Processing Command Line Arguments
in thread More on Processing Command Line Arguments

Is there a better method for doing this. Should I make the program interactive with a menu instead. I lean towards options because they can be scripted themselves. So I could use the above code script.pl -v record_ID >output.txt or script.pl -a <input.txt

Though I would have to change a because right now it requires a parameter passed to it and it really shouldn't

  • Comment on Re: Re: More on Processing Command Line Arguments

Replies are listed 'Best First'.
Re: More on Processing Command Line Arguments
by Abigail-II (Bishop) on Oct 31, 2003 at 16:42 UTC
    When I want to make arguments required, I use Getopt::Long, and just put in an additional check for the 'option' that I want to be required.

    Abigail