A
Andrew
Hi,
in my simple perl script I have to send string to stdin of an
excutable binary which I run from perl. So I am doing the following:
e.g.
my ($result) = `echo "this will be sent to command" | ./command 2>&1`;
# process result...
is there more elegant way to send to command's stdin without using
echo?
Thanks
Andrei
in my simple perl script I have to send string to stdin of an
excutable binary which I run from perl. So I am doing the following:
e.g.
my ($result) = `echo "this will be sent to command" | ./command 2>&1`;
# process result...
is there more elegant way to send to command's stdin without using
echo?
Thanks
Andrei