G
guillaume.drolet.1
Hi everybody,
I think my question is very basic but I googled to find an answer but
without success. Here it is:
On my laptop Linux system, I can execute perl scripts (.pl)
at the shell just by typing the name of the script (e.g.,
/home/script.pl). I recently installed Debian on my desktop and .pl
files aren't
associated with perl (or that's just what I think?). How do I do it?
I discovered this problem when using a perl script that I wrote on my
laptop and that issues commands to the system (system($cmd)
, where
$cmd is a string such as the one mentioned above, i.e., a .pl file. For
my script to work on my desktop, I need to add "perl " at the beginning
of my command string ($cmd = "perl /home/script.pl"
. I never needed
to add "perl " at the command string to have my script running on my
laptop. Why?
Thanks for your help.
I think my question is very basic but I googled to find an answer but
without success. Here it is:
On my laptop Linux system, I can execute perl scripts (.pl)
at the shell just by typing the name of the script (e.g.,
/home/script.pl). I recently installed Debian on my desktop and .pl
files aren't
associated with perl (or that's just what I think?). How do I do it?
I discovered this problem when using a perl script that I wrote on my
laptop and that issues commands to the system (system($cmd)
$cmd is a string such as the one mentioned above, i.e., a .pl file. For
my script to work on my desktop, I need to add "perl " at the beginning
of my command string ($cmd = "perl /home/script.pl"
to add "perl " at the command string to have my script running on my
laptop. Why?
Thanks for your help.