in reply to Re^2: behavior of bitwise shift
in thread behavior of bitwise shift
tomy $mask = "1" x ( 32 - $cidr ) . "0" x $cidr;
since /8 means a mask of 255.0.0.0 and not 255.255.255.0 which is /24.my $mask = "1" x $cidr . "0" x ( 32 - $cidr );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: behavior of bitwise shift
by Taulmarill (Deacon) on Oct 25, 2004 at 15:17 UTC |