sub check_ip() { eval{ my $ip_test = new Net::IP(`curl whatismyip.org`); return $ip_test->ip(); }; if ($@){ sleep(300); check_ip(); }; }
In reply to Is recursion consistent with "use warnings" by jonathansamuel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |