in reply to Leading Zeros
my $x = "1.10.9.2"; my $y = sprintf ("%03d.%03d.%03d.%03d", split (/\./, $x)); [download]