if (-e "imageHandling.pl") { my $app = do "imageHandling.pl"; if (!defined($app)) { die "imageHandling not loaded.\n"; } } else { print "imageHandling.pl not found.\n"; exit; }