The camel book suggests the following:

#!/bin/sh --
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
  if 0;

Is this the best alternative and are there situations in which it might not
work?


I haven't tried to script it but what about 'which perl' ?

Reply via email to