I strongly recommend you use use warnings which will give you some information about your problem even with a bollixed bang-splat line. Your first line should include a !, although if you are running on Windows that line is less important:
#!usr/bin/perl -w
With use warnings; (preferred technique) or the corrected bang-splat line above your script will generate something like:
Useless use of anonymous list ([]) in void context at noname.pl line 1
+0.
Useless use of anonymous list ([]) in void context at noname.pl line 1
+0.
in addition to the $VAR1 dump.
Perl is the programming world's equivalent of English