local $@; my $ok = eval { require q{/path/to/script.pl}; # send code to call it now that we pulled it in... 1; };