OK I have been looking at that statement
$stuff =~ s/ (\d\d)/sprintf(" %2.2i",$1-1)/e;I have poured over my Perl O'Reilly book and am still clueless. Since the input lines look like this
2016-05-16 10:51:07 random text
How does the expression pick out the hours versus any other two digits?
Then what does the sprintf do? I'm willing to learn but would need a starting point.
In reply to Re^4: Date/Time Manipulation
by RobertJ
in thread Date/Time Manipulation
by RobertJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |