,
I'm not able to tell if perl has an ability to override the OS way to resolve IP addresses but would expect it is not. Most of the time people try to reuse code which is already there (and OS is nothing different as piece of code which provides some functionality to the application which runs on top of it). If you need to implement you own IP address logic you should do it inside of your application.