From: Dobrica Pavlinusic Date: Wed, 1 Dec 2010 19:17:47 +0000 (+0100) Subject: fix date log name X-Git-Url: http://git.rot13.org/?p=snmp-json.git;a=commitdiff_plain;h=24f509d82b933984c9666abe6c2b0d1e6cc2c270 fix date log name --- diff --git a/printer-callbacks.pl b/printer-callbacks.pl index 11124fe..38a76f7 100755 --- a/printer-callbacks.pl +++ b/printer-callbacks.pl @@ -23,7 +23,7 @@ sub iso_datetime { return sprintf "%04d-%02d-%02dT%02d:%02d:%02d", $y+1900, $m, $d, $hh, $mm, $ss; } -my $log_path = join('.', $dir, (split(/T/,iso_datetime,2))[0], 'json'); +my $log_path = join('.', $dir . (split(/T/,iso_datetime,2))[0], 'json'); open(my $log, '>>', $log_path) || die "$log_path: $!"; my $community = 'public';