Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: How to handle Net::Address::IP::Local'->public when we are not connected to internet

by Anonymous Monk
on Jan 19, 2015 at 17:12 UTC ( [id://1113783]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to handle Net::Address::IP::Local'->public when we are not connected to internet
in thread How to handle Net::Address::IP::Local'->public when we are not connected to internet

Same error :
Unable to create UDP socket: A socket operation was attempted to an un +reachable network. at C:/Perl/site/lib/Net/Address/IP/Local.pm line 166. 192.80.160.16
  • Comment on Re^4: How to handle Net::Address::IP::Local'->public when we are not connected to internet
  • Download Code

Replies are listed 'Best First'.
Re^5: How to handle Net::Address::IP::Local'->public when we are not connected to internet
by Laurent_R (Canon) on Jan 19, 2015 at 18:59 UTC
    No, it is no longer a fatal error. The program just does what you asked it to do: it prints the content of $@. And then it continues and prints your static IP address, which is enough to prove that the program does not die because of the socket exception.

    Je suis Charlie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113783]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found