Linux – How to execute a PL file in Linux

fedoralinuxperl

I have a vmware-install.pl file that I need to execute. I double click it but Linux will open it in a text editor for editing.
How to execute this file? Can it be done from GUI?
In file's properties says "allow executing file as program".

I have Fedora 18.


Update:
I managed to open the console and navigated to my folder.
I have poked:

chmod +x vmware-install.pl
vmware-install.pl 

the last line says:

vmware-install.pl command not found…

but 'ls' lists the file there….

Best Answer

Run this instead:

./vmware-install.pl 

The ./ refers to the current directory.

If you run it without ./, Linux will look for a program called vmware-install.pl in your executable path, but the current directory is never in the path by default (for security reasons).

Related Question