in reply to Re: CGI and Redirect/URI/Location
in thread CGI and Redirect/URI/Location

Just curious as to what difference $| being set to 1 makes in this code.

LeGo

Replies are listed 'Best First'.
Re: Re: Re: CGI and Redirect/URI/Location
by Zaxo (Archbishop) on Jun 19, 2001 at 04:37 UTC

    That sets autoflush on STDOUT, meaning that 'print "foo";' is sent promptly. In most cases your script will end right after the redirect call, but for long-running scripts it's a courtesy to the client.

    After Compline,
    Zaxo