One thing at a time all the time!

Welcome to Rocteur
Thursday, April 25 2024 @ 02:58 PM CEST

How do I source an file in a Perl script and inherit the file's environment

From tuxz0r in http://www.perlmonks.org/


eval {
exec ". ./env.sh; /usr/bin/perl -s $0 -env -- @ARGV";
} unless $env;

http://www.perlmonks.org/?node_id=645880

FAQ Manager » Perl » How do I source an file in a Perl script and inherit the file's environment