title: How to get 'milliseconds' as a part of time in perl?
body: <p>I need to get the time in the format <code>"20130808 12:12:12.123"</code> i.e., <code>"yyyymmdd hour:min:sec.msec"</code>.</p>
  
  <p>I tried </p>
  
  <pre><code>my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); 
  $year += 1900;
  $mon++;
  if ($mon&lt;10){$mon="0$mon"} 
  if ($mday&lt;10){$mday="0$mday"} 
  if ($hour&lt;10){$hour="0$hour"} 
  if ($min&lt;10){$min="0$min"} 
  if ($sec&lt;10){$sec="0$sec"}  but this doesn't provide the `msec` as a part of time.
  </code></pre>
  
  <p>How can i do that ?</p>