#!/bin/bash if [ -x /path/to/perlY ]; then exec /path/to/perlY "$@" else exec /usr/bin/perlX "$@"