in reply to Re^2: ztk-webcam snapshot-grabber
in thread ztk-webcam snapshot-grabber
Would you explain what "$|++" meaning is in the code? Thanks
Its like $foo++ except working on the variable $| , a reall shell-ish (or hack-ish) way to turn autoflush on, as in
Tutorials: Input and Output: Suffering from Buffering?use IO::Handle; print 1; # doesn't print, puts 1 in the buffer STDOUT->autoflush(1) print 1; # prints 1 immediately (and the previously buffered 1) print "\n2\n"; # \n forces a flush
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: ztk-webcam snapshot-grabber
by PhillipHuang (Beadle) on Jul 22, 2011 at 08:35 UTC | |
by Anonymous Monk on Jul 22, 2011 at 09:08 UTC |