linenum adds line numbers to an input file, making sure
to use a constant width of the line number field. To accomplish this,
it goes through the entire input file first, determines the number
of lines and then zero-pads accordingly:
Copyright 2004 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.