Problems? Is your data what you think it is? | |
PerlMonks |
Re: time passed calculationby choroba (Cardinal) |
on Jan 27, 2022 at 17:37 UTC ( [id://11140905]=note: print w/replies, xml ) | Need Help?? |
I can't reproduce your problem. But the last comparison is definitely not doing what you think: Both the values are strings, so the numeric equality will interpret them in numeric context, leaving just the month. So, if you run the check around the midnight of a month break, there will be no output at all.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|