#! /bin/sh
#
# $Id: perlrun,v 1.1.2.2 2002/12/17 13:08:19 kiwi Exp $

DIR="`dirname $0`"
if [ ! -f "$DIR/perlhelper" ] ; then
  DIR="`pwd`"
fi
if [ ! -f "$DIR/perlhelper" ] ; then
  echo >&2 "$0 $$: unable to find 'perlhelper' script"
  exit 1
fi
for X in /usr/local/bin /usr/bin /bin
do
  if [ -f $X/perl ] ; then
     exec $X/perl "$DIR/perlhelper" $*
  fi
done
echo >&2 "$0 $$: unable to local Perl interpreter"
exit 1
