Net::Time

P

Paul

I am having a problem getting Net::Time to return a value.
both of the folling examples return blank lines when run. I was
expecting it to return the number of seconds from Jan. 1970.

Just to test I have running these lines by themselves in a 2 line
script.

The docs from active state have not been too much help. I have tried
w/ both tcp and udp.

Can anyone point me in the right direction

Thanks




use Net::Time qw(inet_time);
print inet_time('localhost', 'tcp');

or

use Net::Time qw(inet_time);
print inet_time('192.168.1.100', 'tcp');
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top