Jerry said:
I have been running a script out side Perl and having the data go
into a file:
system "$program $ID > id_list.dat";
Ok, so far so good.
Is it possible to redirect the output in ward?
$ID < system "$program $ID";
I am not sure at all what you are trying to achive (your description is
rather, hmmmm, unusual).
Are you simply trying to capture the output from your external program and
assign it to a variable? If yes, then you may want to have a look at the
documentation for the function that you are using, in particular the fourth
sentence in the third paragraph:
"[...] This is
*not* what you want to use to capture the output from a command,
for that you should use [...]"
Or just the FAQ:
" Why can't I get the output of a command with system()?"
Or plain old Google (yes, this question comes up a few times every month).
If you are looking for something else, then please accept my appologies, my
crystal ball must have malfunctioned.
jue