Maybe, but the seeker didn't just copy and past the assignment, like some others. He asked for the best way to perform a very specific task, and demonstrated that he had read the docs enough to know that (s)printf was the right function to use, and even had a working, though suboptimal solution. A "this is homework" disclaimer is always nice, but I think this post is ok without it (even assuming it is homework).
--
Ryan Koppenhaver, Aspiring Perl Hacker
"I ask for so little. Just fear me, love me, do as I say and I will be your slave."
| [reply] |