Unless the directory where your Perl script resides is in your environment path variable, you have to supply the full path to the script. Which might be something like
/home/ramgi/myscript.pl, or simply
./myscript.pl if you are already in that directory.
You also need to make sure that the script is executable. (chmod 0755 myscript.pl - if you want it to be executable by all)