From: timriker Date: Thu, 29 Dec 2011 03:41:13 +0000 (+0000) Subject: handle negative units X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=24ea7acb85e25b73b587e1c27ba2b8f90e465569 handle negative units git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1919 c11ca15a-4712-0410-83d8-924469b57eb5 --- 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);