http://www.perlmonks.org?node_id=872133


in reply to New to Perl

I have used cpan://NetAddr::IP for this purpose before. See the method
->hostenumref() Faster version of ->hostenum(), returning a reference to a list.

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis