Re: '!#' script interpreter convention ...

From: Wartan Hachaturow (wart_at_tepkom.ru)
Date: 04/30/03

  • Next message: Raymond Tan: "Re: bash Shell behaving weird"
    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."
    

  • Next message: Raymond Tan: "Re: bash Shell behaving weird"