First things first, you need to read the
Perl Monks Site FAQ. Then you would know about the
code tags.
Secondly, always
use warnings; or the -w switch, which can help pre-empt problems like the one you are currently experiencing.
Azatoth a.k.a Captain Whiplash
Make Your Die Messages Full of Wisdom!
Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?