Something like this should work:
open my $bash, "|-", "bash >/tmp/out.txt" or die $!; print $bash <<EOL; ls df -h uname -a EOL
Can anyone confirm if this is possible, i.e. have two Perl install on separate directories
Yes, that's possible and quite common
In reply to Re: Using <<EOL > output.out and EOL
by zwon
in thread Using <<EOL > output.out and EOL
by newbie01.perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |