in reply to Adding Leading Zeros
-----$var = "0000000000"; substr($var, -length($ARGV[0])) = "$ARGV[0]"; print "$var\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding Leading Zeros
by tusty (Novice) on Mar 15, 2016 at 09:26 UTC | |
by Athanasius (Archbishop) on Mar 15, 2016 at 09:37 UTC |