in reply to Re: sprintf zero-fill issue
in thread sprintf zero-fill issue
Having said that, I really like the construction Moron described, and plan on trying it. (I'm also the only Perl practioner in my shop. Sadly.)my $delta = $maxSize - length( $value ); $value = ( '0'x$delta ).$value if ( $delta > 0 );
|
---|