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
In reply to Re: Pack command
by Limbic~Region
in thread Pack command
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |