Put the following line near the top of your script:
use diagnostics;
Perl will then tell you the cause of the error. The diagnostics pragma has many helpfull hints. Please also read the Writeup Formatting Tips and use the Preview feature so your posts are readable to others. Perlmonks uses HTML for formatting.
In reply to Re^5: i need help in subroutines
by Corion
in thread i need help in subroutines
by uva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |