in reply to writing a utility to determine whether I have a working wifi connection

I tend to use Net::Ping for this sort of thing. The CPAN Testers results say it's highly portable. Of course, you have to choose your ping protocol, and Net::Ping does not support absolutely everything. I tend to use icmp, which requires privilege, at least under a non-Windows system.

Replies are listed 'Best First'.
Re^2: writing a utility to determine whether I have a working wifi connection
by haukex (Archbishop) on Jul 27, 2019 at 17:36 UTC
    Net::Ping ... I tend to use icmp, which requires privilege, at least under a non-Windows system.

    An alternative that doesn't require root is Net::Ping::External.