#!/bin/bash export LD_LIBRARY_PATH=/path/to/foo:$LD_LIBRARY_PATH /path/to/perl/script