Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Use of uninitialized value $i in bitwise and (&) at <Netmask.pm>

by haukex (Archbishop)
on Dec 18, 2017 at 09:02 UTC ( [id://1205780]=note: print w/replies, xml ) Need Help??


in reply to Use of uninitialized value $i in bitwise and (&) at <Netmask.pm>

Looking at the CPAN Testers Matrix and some specific test results for Net-Netmask is worrying to me: the operations the module is performing should be deterministic, but at least on Linux some tests are failing sometimes*, so I'm not really sure if this module is reliable. I'm not up-to-date on the best modules for this kind of task, so perhaps another monk will be able to recommend something.

* Update: I would guess it has to do with the options Perl was built with, a quick sampling of some failing vs. passing configurations shows that the failing ones have, among other things, USE_LONG_DOUBLE set, as also reported in #99184. OTOH, even older versions, like the one you've linked to, show some test failures.

Replies are listed 'Best First'.
Re^2: Use of uninitialized value $i in bitwise and (&) at <Netmask.pm>
by hippo (Bishop) on Dec 18, 2017 at 09:10 UTC

    I normally use Net::CIDR for such tasks. It has always been reliable for me.

      Thank you so much for the recommendation!! Will try using this module instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found