in reply to processing on the command line

tinita's question to you is very much on point. What have you actually tried? Have you attempted to research this question on your own? This is a very basic question which is address in nearly all the documentation I can think of.

Now, if your question is "Should I use a Getopt module or @ARGV?", that's a style question, dependent primarily on how quick you need to get this up and running and how often you expect this module to be used in the future, and by whom. Personally, I feel that if a script is going to live for longer than one incantation, the time spent with Getopt is valuable.

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.