Not entirely on topic, but have you considered using one of the Getopt modules? It is usually the best way to go when dealing with command line flags. Personally, I recommend Getopt::Long.
There are sundry examples of Getopt::Long examples in The Monastery's archives. Supersearch if you need help. :)
And you didn't even know bears could type.
In reply to Re: Adding a dispatch table and getting "Variable $x will not stay shared" errors.
by Lawliet
in thread Adding a dispatch table and getting "Variable $x will not stay shared" errors.
by gctaylor1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |