I'm trying to convert ip address: 1.1.1.9 to 01 01 01 09.
How do I convert it with the assistance of PACK command ?
I tried to do it with 'H8':
$new = pack ('ncH8n',$x, $y, $ip, $z)
What I got in the ip section is: 11 19 00 00
Any ideas ?
Mosh.
In reply to Pack command by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |