Jay Savage said: > On 8/23/05, Scott Taylor <[EMAIL PROTECTED]> wrote: >> >> Hello all, >> >> I have a CGI script that I need to display the output of a shell >> program, >> basically a simple C program that parses some text. >> >> The output is right to the browser, and I don't want it to be creating >> any >> new files or anything. I have a data field that has a blob and that >> blob >> needs to be parsed and the output returned to the browser. >> >> What is a good way to do this: >> >> while ( my ($row ) = $sth->fetchrow_hashref ) { >> my $raw_data = $row->{BLOB}; >> my $parsed_data = system ("echo $raw_data|pasrer"); >> ... >> } >> >> of course that doesn't work, but what would be the right way to do it? >> >> Cheers. >> >> -- >> Scott >> > > Use backticks. > > $data = `/path/to/parser $raw_data`
That was easy! Thanks. :) -- Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>