Re: '!#' script interpreter convention ...
From: Wartan Hachaturow (wart_at_tepkom.ru)
Date: 04/30/03
- Previous message: Micke: "Insert a line in a textfile from a script"
- In reply to: Saurabh Verma: "Re: '!#' script interpreter convention ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 30 Apr 2003 10:01:23 GMT
Saurabh Verma wrote:
> machines with different perl paths. With me, the issue is, on some
> machines perl is in 'usr/local/bin' and on some other its in 'usr/bin'
> so, my script fails on one of these. And the way i am using it, i
> can't run 'perl test.pl', as i need to run 'test.pl' only(as
You can try using something like "#!/usr/bin/env perl".
-- Regards, Wartan. "Computers are not intelligent. They only think they are."
- Previous message: Micke: "Insert a line in a textfile from a script"
- In reply to: Saurabh Verma: "Re: '!#' script interpreter convention ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]