Subject: | Sometimes spurious output $time{'hh:mm:ss.mmm'} |
Using Active Perl 5.16.1, on Windows XP sp3. Built and installed
Time::Format from CPAN ('cpan install Time::Format').
When using $time{format}, milliseconds are translated, but sometimes get
{on} appended.
eg attached file produces some correct output, and some incorrect.
Has anyone seen this, or can someone suggest where I should look? I am
not familiar with _XS.
Also tried on an arm base Linux unit (actually DLink DNS-325 with
FunPlug), same result.
perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-
thread-multi-64ints:
uname -a
Linux dlink-00 2.6.22.18 #15 Wed May 25 15:23:11 CST 2011 armv5tejl
GNU/Linux
Many thanks
Brighton Guy
Subject: | test.pl |
#!/
package test;
use strict;
use warnings;
use Time::HiRes qw(time);
use Time::Format qw(%time);
print $time{"pa\\s\\s: hh:mm:ss.mmm\n"};
print $time{"pa\\s\\s: hh:mm:ss.mmm te\\st\n"};
print $time{"fail: hh:mm:ss.mmm dd/mm/yyyy\n"};
print $time{"fail: hh:mm{in}:ss.mmm dd/mm{on}/yyyy\n"};
print $time{"pa\\s\\s: dd/mm/yyyy hh:mm:ss.mmm\n"};
print $time{"pa\\s\\s: yyyy/mm/dd hh:mm:ss.mmm\n"};