in reply to Check to see if a variable exists

On the offchance that you mean Environment variables (I'm guessing by your reference to configuration files), it might be helpful to look at Env
NAME Env - perl module that imports environment variables as scalars or + arrays SYNOPSIS use Env; use Env qw(PATH HOME TERM); use Env qw($SHELL @LD_LIBRARY_PATH); DESCRIPTION Perl maintains environment variables in a special hash named %ENV. + For when this access method is inconvenient, the Perl module "Env" a +llows environment variables to be treated as scalar or array variable +s.