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

I notice that you are not chomping $row. Perhaps it is those EOL characters which are causing the problem?

Also, you only ever have one element in your @row array, so there is little point in the loop. If I were you, as a general point I would avoid having @row and $row in the same context - as it stands it is too easy for strict to miss a typo. HTH.

Replies are listed 'Best First'.
Re^2: Use of uninitialized value $i in bitwise and (&) at <Netmask.pm>
by dotowwxo (Acolyte) on Dec 19, 2017 at 02:35 UTC
    Hi, I have tried chomping @rows and some different scenarios, however, it stills gives me the same result. Understood, thanks for your advice!