in reply to Pack command
If you really want the spaces just change the first argument to join. I am not great at pack/unpack so I use what I know works. I question what you would want to happen if you have 3 digit octets?my $new = join '', map { sprintf('%.2d', $_) } split /\./, $ip;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pack command
by mosh (Scribe) on Apr 18, 2005 at 14:06 UTC |