<?xml version="1.0" encoding="windows-1252"?>
<node id="1005311" title="Re^3: open command for input" created="2012-11-23 12:58:21" updated="2012-11-23 12:58:21">
<type id="11">
note</type>
<author id="980564">
aitap</author>
<data>
<field name="doctext">
&lt;p&gt;Another option is [doc://IPC::Open2], which is in core. This will require a bit more code, but should work:
&lt;c&gt;use IPC::Open2;
open IN, "&lt;", "commandfile"; # unfortunately, scalar filehandles won't work this way
open OUT, "&gt;", "logfile";
my $pid = open2("&gt;&amp;OUT", "&lt;&amp;IN", "theprogram");
waitpid $pid, 0;
&lt;/c&gt;&lt;/p&gt;

&lt;p&gt;You can also package your application together with module you use with the help of [mod://PAR::Packer] (its installation is required only on the packager's computer). But I don't know whether it will interfere with PDK or not.&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-980564"&gt;
Sorry if my advice was wrong.
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1005013</field>
<field name="parent_node">
1005301</field>
</data>
</node>
