CGI x locking

Honza Pazdziora adelton na informatics.muni.cz
Pátek Leden 18 11:46:31 MET 2002


On Fri, Jan 18, 2002 at 06:44:54AM +0100, Petr Klimovic wrote:
> 
> To souvisi s bufferem na stdout. V promenne $| se da nastavit velikost 
> tohoto bufferu.
> 
> $| = 1;

Neni pravda:

     $|      If set to nonzero, forces a flush right away and
             after every write or print on the currently selected
             output channel.  Default is 0 (regardless of whether
             the channel is actually buffered by the system or
             not; $| tells you only whether you've asked Perl
             explicitly to flush after each write).  Note that
             STDOUT will typically be line buffered if output is
             to the terminal and block buffered otherwise.
             Setting this variable is useful primarily when you
             are outputting to a pipe, such as when you are
             running a Perl script under rsh and want to see the
             output as it's happening.  This has no effect on
             input buffering.  (Mnemonic: when you want your
             pipes to be piping hot.)

Podle Vasi teorie by prave defaultni nastaveni na 0 zabranilo
bufferovani. Promenna $| ma ano/ne vyznam, zda delat flush nebo ne.

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
   .project: Perl, DBI, Oracle, MySQL, auth. WWW servers, DBD::XBase.
------------------------------------------------------------------------


Další informace o konferenci Perl