use strict; use warnings; # if the perl script takes input and output strings as arguments my $perl_script = "perl script_to_execute input output"; # print to see what is being executed print "$perl_script\n" my $script_exe = `$perl_script`; # To check for errors print "$script_exe\n";