jonathansamuel has asked for the wisdom of the Perl Monks concerning the following question:
sub check_ip() { eval{ my $ip_test = new Net::IP(`curl whatismyip.org`); return $ip_test->ip(); }; if ($@){ sleep(300); check_ip(); }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is recursion consistent with "use warnings"
by CountZero (Bishop) on Apr 09, 2010 at 05:58 UTC | |
by jonathansamuel (Initiate) on Apr 09, 2010 at 14:09 UTC | |
|
Re: Is recursion consistent with "use warnings"
by tilly (Archbishop) on Apr 09, 2010 at 06:17 UTC | |
|
Re: Is recursion consistent with "use warnings"
by JavaFan (Canon) on Apr 09, 2010 at 10:48 UTC |