If you expect people to debug this for you at least provide the input required for it to run, see How do I post a question effectively?. Since you're new to Perl I suggest you read:
In reply to Re: having no result
by marto
in thread having no result
by ati
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |