Red Hat Bugzilla – Bug 9310
" #! /usr/bin/perl " FAILS (take any interpreter for the perl location)
Last modified: 2014-03-16 22:12:27 EDT
I'm a newbie to linux, and so I may perhaps make a stupid mistake, but...
I read that if I add "#! /usr/bin/perl" to the top of a perl script (or
any script if it just points to the script interpreter), and if I "chmod
+x" it, that it will be executable, and will automatically run the perl
interpreter if i execute it.
It does not work, and I think it is fairly important. I already checked if
it points to the perl-path, and the scripts work if i do "perl [script]"
but when I just execute the script i get "command not found" or something
PLEASE help me!
Thanx in advance,
Peter Martijn Kuipers
I can't reproduce this here; perl scripts seem to run OK.
What does rpm -V perl say?
Is the "#!/usr/bin/perl" line the very first line of your file.
It must be the first line.