#!/usr/bin/perl use IPC::Open2; use LWP::Simple; my $pid = open2(READER, WRITER, '/usr/local/bin/whatever'); print "opened whatever\n";