Right now I'm learning the Perl 6 language, and I'd like to know how to convert an url to an IP address
It seems to me that the gethostbyname function does not exist.
Right now I'm learning the Perl 6 language, and I'd like to know how to convert an url to an IP address
It seems to me that the gethostbyname function does not exist.
gethostbyname is obsoleted by now. getaddrinfo
is used instead. You will have to use the NativeCall API to call this POSIX function. The example included in the NativeCall page addresses precisely this problem.