X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=blobdiff_plain;f=src%2FModules%2FUnits.pl;fp=src%2FModules%2FUnits.pl;h=fc88317ae1b8b3b9aade09b29ef2b38d595d70e4;hp=79e50b3aed777b6a79475ab03a9a0376af173151;hb=24ea7acb85e25b73b587e1c27ba2b8f90e465569;hpb=0592d5730d184c615228d6c930c9ec96f96a840a 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);