From 59fdc08dc69858c979cd191efc9a711a9a3a458f Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 6 Dec 2009 14:22:52 -0800 Subject: [PATCH] when grabbing data either from the thread-safe queue or from <>, I should be using //, not || Ignore-this: 853ee4746850b2da83006e06ea4dc82b darcs-hash:20091206222252-0cb85-cbe476e37cd152cf1952356df6534ab4fd2a4e3d.gz --- driveGnuPlots.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index fc79570..db57e3a 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -190,7 +190,7 @@ sub mainThread { my $numRE = qr/([-]?[0-9\.]+(?:e[-]?[0-9]+)?)/; my $xlast; - while( $_ = ($dataQueue && $dataQueue->dequeue()) || <> ) + while( $_ = ($dataQueue && $dataQueue->dequeue()) // <> ) { if($_ ne "Plot now") {