Since the system call gethostbyname results in a C struct, it can be unpacked.my @ip = map { hex($_) } map { /(..)/g } unpack("H*",$pip); print join '.',@ip;
In reply to Re: perl and getaddrinfo API
by trippledubs
in thread perl and getaddrinfo API
by swissknife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |