<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Perl IPC::Open2 module]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/42919/perl-ipcopen2-module?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/42919/perl-ipcopen2-module?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/42919/perl-ipcopen2-module</guid>
	<pubDate>Sat, 27 Feb 2021 01:29:04 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/42919/perl-ipcopen2-module</link>
	<title><![CDATA[Perl IPC::Open2 module]]></title>
	<description><![CDATA[<code>syntax: $output = open2(\*CHLD_OUT, \*CHLD_IN, &#039;command arg1 arg2&#039;);

It runs a process for both reading and writing and creates a pipe to both STDIN and STDOUT. It can be used in both ways:

$output = open2(my $out, my $in, &#039;command arg1 arg2&#039;);

OR without using the shell

$output = open2(my $out, my $in, &#039;command&#039;, &#039;arg1&#039;, &#039;arg2&#039;);

You can read about it more in the documentation: IPC::Open2.</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>