Execute in your shell the following command, to enable finding executable files in the directory
If you plan to use the script in that path routinely, consider adding the above command to your
Add to the Perl script this line as the very first line in the script (it tells the shell to use the Perl interpreter):
Make the Perl script executable, so that you can execute it by typing its name:
chmod u+x /path/to/perl/script/perl_script_name.pl
Now you can execute the Perl script in any of the following equivalent ways:
How to correctly add a path to PATH?
What should I use for a Perl script's shebang line?