From: Ian Jackson Date: Sun, 25 Nov 2018 14:40:49 +0000 (+0000) Subject: distort-stl: debugging, avoid a warning X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=c889fb8f9176046ccb14bd342ad10f3cf9f5b300 distort-stl: debugging, avoid a warning Use of uninitialized value $debug in numeric ge (>=) at ./distort-stl line 107. Signed-off-by: Ian Jackson --- diff --git a/distort-stl b/distort-stl index b5ccb99..68290c4 100755 --- a/distort-stl +++ b/distort-stl @@ -32,7 +32,7 @@ use Data::Dumper; sub TAU () { M_PI * 2; } -our $debug = $ENV{DISTORT_DEBUG}; +our $debug = $ENV{DISTORT_DEBUG} // 0 ; my $ps = $ENV{DISTORT_PS}; if ($ps) {