Ovid has asked for the wisdom of the Perl Monks concerning the following question:
So the question is, how do I preserve what's in STDIN so CGI.pm can read it? Here's Fastolfe's suggestion:
Later, CGI.pm would be called like the following:local($/); $data = <STDIN>; my $A = IO::String->new ($data); my $B = IO::String->new ($data);
Any comments/suggestions? The IS manager agrees that we need to convert everything to CGI.pm, however, we probably have about 15,000 lines of code to go through and we can't do this before the site roll-out :( In short, I need to get a quick, ugly hack together and then fix this later.use CGI ($B);
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: How to preserve the value of STDIN
by tilly (Archbishop) on Sep 22, 2000 at 03:22 UTC | |
by Ovid (Cardinal) on Sep 22, 2000 at 03:58 UTC | |
by Anonymous Monk on Feb 07, 2013 at 19:06 UTC | |
|
Re: How to preserve the value of STDIN
by chromatic (Archbishop) on Sep 22, 2000 at 03:08 UTC | |
by Fastolfe (Vicar) on Sep 22, 2000 at 03:10 UTC | |
|
Re: How to preserve the value of STDIN
by Fastolfe (Vicar) on Sep 22, 2000 at 03:08 UTC |