qadwjoh has asked for the wisdom of the Perl Monks concerning the following question:
Andrewunless ($pid = open3(\*WRITE, \*READ, \*READ, $prog, $prog_args)) +{ print "<p>Error..."; return; } READ->autoflush(1); # waitpid $pid, 0; # ? unless ($pid) { print "<p>Error..."; close WRITE; close READ; return; } close WRITE; print "<br>"; while (<READ>) { if (/^Job/) { print "<b>$_</b><br>\n"; } elsif (/\w+/) { $_ =~ s/"(.*?)"/<b>$1<\/b>/g; print "$_<br>\n"; } } close READ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Output from CGI
by davis (Vicar) on Mar 02, 2004 at 11:40 UTC | |
by biosysadmin (Deacon) on Mar 02, 2004 at 22:42 UTC | |
|
Re: Output from CGI
by markmoon (Deacon) on Mar 02, 2004 at 13:20 UTC |