wow... cheers for this.
I develop primariliy in Java JS and python but have had to work with Perl quite a bit.
As helpful as this is, I think its quite a shame that you have to hand-crank all this in Perl so you can read milliseconds from a timestamp..