Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: communicating with another program

by Delusional (Beadle)
on Nov 30, 2005 at 11:07 UTC ( [id://512900]=note: print w/replies, xml ) Need Help??


in reply to communicating with another program

Scalled down to the minimun. Only tested once to be sure it 'runs':

test1.pl
my $returned = `test2.pl aaa bbb ccc`; print "Got \"$returned\" from test2.pl\n"; exit;

test2.pl
foreach $line (@ARGV) { $input .= $line; } if ($input ne '') { print "We received input:\n$input"; } else { print "Error, no input received!"; } exit;

Replies are listed 'Best First'.
Re^2: communicating with another program
by twotone (Beadle) on Dec 01, 2005 at 04:25 UTC
    That does exactly what I need and is very simple. Thanks a bunch. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://512900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found