From 24ea7acb85e25b73b587e1c27ba2b8f90e465569 Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 29 Dec 2011 03:41:13 +0000 Subject: [PATCH] handle negative units git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1919 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/Units.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Units.pl b/src/Modules/Units.pl index 79e50b3..fc88317 100644 --- a/src/Modules/Units.pl +++ b/src/Modules/Units.pl @@ -15,7 +15,7 @@ sub convertUnits { } my $units = new IO::File; - open $units, '-|', 'units', $from, $to + open $units, '-|', 'units', '--', $from, $to or &::DEBUG("Unable to run units: $!") and return; my $response = readline($units); -- 2.39.5