in reply to NTP and perl

NTP is a pretty complex protocol. It's a lot more than just querying some other server for the correct time. I can't recall ever seeing any application software with built-in NTP client capabilities.

Are you just writing something that needs to know the correct time? Generally, to use NTP, you set up an NTP server on the local computer; the NTP server automatically keeps the system clock accurate, so other programs just have to query the system for the current time.

If you really need to query another host's clock directly from your perl module, check out Net::Time. It supports a couple of older network time protocols.