Welcome to PerlMonks!
First, thanks for making the effort to make your code block legible, but please note that <pre> tags are discouraged here. If you want something displayed in fixed-width font, please use <code> tags. Writeup Formatting Tips and Perl Monks Approved HTML tags are good references.
Here are some general observations that may help you with this and future programs.
HTH. Please don't be discouraged by these comments. We all learned the basics at one point. :-)
In reply to Re: Understanding ::
by bobf
in thread Understanding ::
by n00dles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |