General comments:
Line 3 should be line 1. And it should be uncommented. A use warnings; as line 2 would be good as well. Together these two lines will help you find more problems in your Perl code than just about anything else ever could.
Line 20 should be before line 11. And, given what you are asking, it should probably read Getopt::Long instead of Getopt::Std. (By the way, that's the answer to your direct question: Getopt::Long can do everything you ask.)
Exception to the above: While you can make multiple logfile arguments, I'd rather use the <> operator, and have the script take a list of filenames on standard input. (Which also lets it read from a pipe instead. Very useful if you decide to start compressing these files, or only want to process certain lines...)
Learn POD, and use it (and Pod::Usage) instead of trying to format your own helptext. It's much harder to do right than you'd think. POD makes it easy.
In reply to Re: passing command line arguements to perl script
by DStaal
in thread passing command line arguements to perl script
by namishtiwari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |