> I still didn't figure out the "magic" needed to put the correct perl path
> at the beginning ot the lyxexport program.


I use 

eval "exec perl $0 $*"
  if 0;

as the first two lines of a "portable" perl script (but I do not know,
how portable it really is).

The "magic": The script is fed into your standard interpreter (/bin/bash
e.g.) that recognizes the first line as a command and fires up perl with
a commandline consisting of the scriptname and any additional parameter.

Than perl takes over, reads the first *statement* (lines 1 and 2)
drops the eval-stuff since  'if 0' never succeeds and goes on with the
rest of the script.

Of course, it's not my own idea, rather taken from 'man perlrun'.
And you need perl in your $PATH and your standard interpreter has to
know what to do with eval and exec...

Andre'

--
Andre' Poenitz, TU Chemnitz, Fakultaet fuer Mathematik
[EMAIL PROTECTED] ... +49 3727 58 1381

Reply via email to