Re: Choosing the path based on the system "uname" command



On Feb 27, 2:09 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
This is not a Perl question. The path on the #! line is not used by
perl, but by your operating system. In general, there is no way to put
any logic into that line, though

#!/usr/bin/env perl

may do what you want. Note that it will use the perl in your current
PATH, which may be a security risk. As others have said, you are much
better off arranging for perl to be available as /usr/bin/perl, or
writing some sort of installation script that changes the #! line.

Ben

Thanks for your input. I will have an installation script to change
the #! line.

Thanks,
doni

.



Relevant Pages

  • Re: attacks: detection and respond
    ... All these, except perl, have a reasonable size. ... the main problem with IDS systems is that attacks ... documentation provided in the operating system man pages. ... users can decide if they want or not to install it. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Returning specific data from a webpage?
    ... Newbie ... > operating system can play nasty tricks on the unsuspecting individual. ... At first sight it looks pretty harmless, after all Perl finds the ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: Output files to text document
    ... directory and subdirectorys) into a text file. ... operating system for the file names in the file system so if you are provided a file name from the operating system it must therefore exist and subsequently testing for its existence is superfluous. ... Perhaps your operating system provides a program like 'cron' or 'at' that lets you run your program at scheduled intervals. ... If you really want to do it in Perl please let us know. ...
    (perl.beginners)
  • Re: Key press question
    ... The latest ActiveState version of Perl is ... Many computer languages have a regular keyboard input statement such as the ... Perl depends upon the underlying operating system to detect the ctrl, ...
    (comp.lang.perl.misc)
  • Perl 5.8.8 Installation
    ... containing your C compiler is before /usr/ucb in your PATH. ... Configure uses the operating system name and version to set some defaults. ... Perl can be built to use the SOCKS proxy protocol library. ... Either install the C compiler supplied by your OS vendor, ...
    (SunManagers)