Hello I have a old program that need very specific format for input and takes a very long time to load in the web world anyway (20 secs). So I want to use the open and pipe to send information to it. I have a server(c++) simmilar to cgi_speedy, but I never really worked with the open and pipe.
open(old, "| /bin/old");
foreach my $INPUT(@DATA)
my ($LAST_NAME,$FIRSTNAME,$ID_NUM,$BOOK) = split(/\s+/,$INPUT);
print old "$LAST_NAME\t$FIRSTNAME\n"
print old "\t$ID_NUM\t$BOOK\n"
The code doesn't work but if I do it by hand inputing via keyboard it works? Is their sometype of formating I need to do on the tab or newlines.