|
Posted by Eric on June 6, 2008, 4:46 pm
Please log in for more thread options >
> > news:ec87562b-c320-46a8-9ac9-4c2218e19599
> > @k37g2000hsf.googlegroups.com:
>
> >> if ($io->fdopen(fileno(STDOUT),"w")) {
> >> $io->print("Output:output.php?load=$sum/$pdbid.html\n");
> >> $io->flush() || die $!;
> >> }
>
> > ...
>
> >> Also, if there is a better group for me to post to, that would be
> >> appreciated too.
>
> > I will recommend the main page athttp://thedailywtf.com/
>
> I am afraid everyone is going to get on my case for being rude again, so
> let me ask you to please kindly explain what you are doing.
>
> In general, the way to print to STDOUT in Perl is to
>
> print "Output:output.php?load=$sum/$pdbid.html\n";
>
> Sometimes you might have to explicitly specify the filehandle:
>
> print STDOUT "Output:output.php?load=$sum/$pdbid.html\n";
>
> The Perl only code you present in your post (well, OK, there is call to
> system) is what I have quoted above. I am baffled as to what you think
> this does and why you think you need it.
>
> On the other hand, my powers of mental-telemetapathy tell me that you
> might be interested in
>
> http://www.stonehenge.com/merlyn/LinuxMag/col39.html
>
> On the other hand, that may not be as webtwomoey and ajaxamahahey for
> you.
>
> Sinan
>
> --
> (remove .invalid and reverse each component for email address)
>
> comp.lang.perl.misc guidelines on the WWW:http://www.rehabitation.com/clpmisc/
Thanks for responding. I'm actually very new to both perl and cgi
scripting, so I really appreciate your kind and professional attidute.
Initially that line looked like this:
print "Output:output.php?load=$sum/$pdbid.html\n"
However, that message was not sent to the page in as timely a fashion
as I would like, so I tried setting autoflush. Still no go, so I
found that you can manually flush a buffer if you use that module. I
left it in both that line and the autoflush above it the hopes that it
would give you some idea of what I've already tried.
The "Output:" is simply a keyword that the page looks for when
deciding what to do with a message from the message from the cgi page.
Thanks,
Eric
|