#!/usr/bin/perl -w BEGIN { $ENV{'ORACLE_HOME'} = "/path/to/oracle"; $ENV{'ORACLE_SID'} = "abc"; } # the rest of your code goes here