Greetings,
I'm a TextMate newbie, so this may be a duhhh, but...
I wrote a little a Perl script as a command. The first line of the script is, as you might expect, #! usr/bin/perl.
The command works perfectly as long as my TM doc has not been saved. As soon as I save the doc, running the command prints "interpreter failed: No such file or directory."
This sure looks like a path issue, but what changes when I save the file?
Any help is much appreciated.
- Alan Goodwin
Alan Goodwin wrote:
The first line of the script is, as you might expect, #! usr/bin/perl.
Is this a typo, or is the first "/" in what should read "#!/usr/bin/perl" missing? If so that is probably your solution. If not... deeper digging is required. Maybe try running it in a terminal window: if you've saved it as "fred.pl" then move to that directory and execute the following commands...
chmod u+x fred.pl ./fred.pl
and show us the output.
Cheers, Paul