in reply to how to make perl only print whole numbers

Unrelated to your problem... don't use sprintf that way. The first argument should be a FORMAT.
  • Comment on Re: how to make perl only print whole numbers