http://qs321.pair.com?node_id=211206


in reply to A little golf anyone?

OK, this is my final answer:
perl -pe' s!\d{4,}(?=\s)! sprintf$"x($x=-4+length$&) ."%3.*f" .qw(M G T)[$x/3], $x%3<1, $&/1024**int$x/3+1 !ge '
which is 104 chars not counting the decorative white space.

  p