my $ip = gethostbyname foo.bar.net; print $ip;