And the output -use strict; while (<DATA>) { s/(\d+|\.)/ $1 eq '.' ? '' : sprintf "%03d", $1 /eg; print; } __DATA__ 127.0.0.1 256.123.12.1 256.12.31.21
127000000001 256123012001 256012031021
In reply to Re: create filename from IP#
by Roger
in thread create filename from IP#
by belize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |