Try (local $_ = shift) =~ ... or +shift =~ .... in place of $_ =~ at the start of parse_datetime()
In reply to Re: Array iteration: foreach works, for doesn't
by Bloodnok
in thread Array iteration: foreach works, for doesn't
by Dźwiedziu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |