[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #!/Perl question

*- On  2 Sep, Jonathan Markevich wrote about "Re: #!/Perl question"
> On Fri, Sep 03, 1999 at 03:04:49AM +0800, Hans van den Boogert wrote:
>> I'm trying to learn some Perl. I found an on-line book which is Unix
>> biased, but the scripts all start with #!/usr/local/bin/perl (which makes
>> sense if you have compiled and installed it yourself). However, on my
>> Debian system Perl was of course put in /usr/bin/perl. So how can I write a
>> Perl script that be executed on a variety of systems (Unix/Linux/DOS)?? 
> Personally, I would count on /usr/bin/perl.  It seems unusual to take such
> an important key to lots of system-based scripts and keep it local.  Check
> out this:

I think(i.e. just my local experience) many of the commercial Unix's put
everything under /usr/local that is not part of the core OS.  Unlike
Linux distributions most commercial Unix's don't come with all the apps
>From the university server here:

{servis@widget}{~}[2]>uname -a
SunOS widget.ecn.purdue.edu 5.6 Generic_105181-15 sun4u sparc SUNW,Ultra-4
{servis@widget}{~}[3]>which perl

Mechanical Engineering                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis

Reply to: