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 );
In reply to Re^2: sprintf zero-fill issue
by apl
in thread sprintf zero-fill issue
by mlong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |