good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Redirecting Output to shell command from within perlby haukex (Archbishop) |
on Feb 17, 2018 at 09:13 UTC ( [id://1209377]=note: print w/replies, xml ) | Need Help?? |
I think it might be the most robust/portable to go through a temporary file using File::Temp and system:
But the following two also work; IPC::Run3 also usually works with temporary files internally:
Or with pure Perl and piped open, available in Perl 5.8 and up - but see this node as well as this node for the pitfalls!
In Section
Seekers of Perl Wisdom
|
|