Gday Maunir,
Make sure your perl program starts with a correct shebang (in your instance #!/usr/bin/perl).
If perl is installed correctly, running "perl -v" should tell you a story about your installation. This will also allow you to verify what you installed.
Regards,
Pat