Re: printf and zero padding

2009-10-24 Thread Harry Putnam
Jim Gibson writes: > At 4:02 PM -0500 10/24/09, Harry Putnam wrote: >>With this little script, how would I manage to get the shorter >>timestamps zero padded using printf? I now how to get padded numbers >>but not when I'm pushing off the right margin too. >> >>cat script.pl >> >> #!/usr/local

Re: printf and zero padding

2009-10-24 Thread Jim Gibson
At 4:02 PM -0500 10/24/09, Harry Putnam wrote: With this little script, how would I manage to get the shorter timestamps zero padded using printf? I now how to get padded numbers but not when I'm pushing off the right margin too. cat script.pl #!/usr/local/bin/perl use strict; use warnin

printf and zero padding

2009-10-24 Thread Harry Putnam
With this little script, how would I manage to get the shorter timestamps zero padded using printf? I now how to get padded numbers but not when I'm pushing off the right margin too. cat script.pl #!/usr/local/bin/perl use strict; use warnings; while (my $file = shift @ARGV){ my @st