This might sound weird but I need a way to search for the perl interpretor with my script. I could do a simple if statement with the -e flag to see if the executable exists but I would need to know exactly where this file is located on on every system.
Is there a way I can check and see if the system has a perl interpretor installed on it during startup? Oh and in case this does not make I am compiling my program to be a stand alone program. I plan on using it on systems that do not have perl installed on it and want to limit some of the functions if no interpretor is installed.