* Hans van den Boogert <[EMAIL PROTECTED]> writes:

> 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)?? 

Basically form the camel book:

eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $
argv:q'
        if 0;

HTH,
  Colin

-- 
Colin Marquardt <[EMAIL PROTECTED]>

Reply via email to