in reply to ztk-webcam snapshot-grabber

See also In Search of a Better Mousetrap.

Replies are listed 'Best First'.
Re^2: ztk-webcam snapshot-grabber
by PhillipHuang (Beadle) on Jul 20, 2011 at 09:38 UTC

    Would you explain what "$|++" meaning is in the code? Thanks

      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

      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
      Tutorials: Input and Output: Suffering from Buffering?