It's interesting to see, which nonsense in Perl can work when one omits
Code:
use strict;
use warnings;
What you are writing (here and in your other thread) isn't Perl5 but Perl4. If you really want to learn Perl:
1. put the above two lines to the top of your code (dircetly below #!/usr/bin/perl)
2. run your program
3. Open a terminal (use Linux) and execute
Code:
perldoc -q variables
4. Read carefully and find out, what all the error- and warningmessages mean.
Markus