in reply to number formatting

and apart from the perldoc to printf and sprintf this excellent tutorial Using (s)printf() here on PM might help you with the myriad of options for the format string - if you need to print something more complicated then a zero padded number ;)

-- Hofmator