Script ends at 'printf'

The FAQchest faqchest at abac.com
Thu Dec 20 22:51:06 CST 2001


~sdpm~
Just $.02

Try this at the begining of your script, just in case the "remaining
part of the HTML page" stays stuck in a buffer. This makes all IO being
flushed with the print command.

select (STDOUT);
$|=1;  # prevents output buffering

Cheers,
Thierry

PS: I missed this month meeting. Got stuck at work. Too bad. I missed
you guys ;-) Merry Christmas.


Ken Loomis wrote:
> 
> I am using a Perl script to print an HTML page that displays an order
> summary.
> 
> It was working fine then suddenly started only generating part of the
> page.
> 
> I've been able to determine that it stops sending the HTML wherever I
> insert the following statement:
> 
>     printf("\$%4.2f",$price);
> 
> I am baffled.
> 
> Any ideas?
> 
> Thanks for any suggestions anyone may have.
> 
> --
> Ken Loomis
> Consultant
> Windows, Macintosh, Internet, etc.
> Helping to make your technology
> experience more pleasant  ;-)
> 619-275-6919 / KLoomis at BigPlanet.com
~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list