$ cat script.sh echo Woo-hoo! $ cat yang.pl #!/usr/bin/env perl use strict; use warnings; system '. ./script.sh'; $ ./yang.pl Woo-hoo! $