AlCapone has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings fellow perl programmers.
I'm new to this monastery, so go easy on me if I do something wrong.
Here's the question: I'm writing a script which will require quite a lot of user input, which I'm going to take from @ARGV. Now, most of input is optional and naturally it can be random order with switches (-f file -s size -t time etc). Having a bunch of if statements with foreach() doesn't sounds like a great plan to me. So what do you guys use when want to get heaps of info from command line but don't want to have megabytes of if()'s?
/me off to look at some pre-written perl files to see what they do...