in reply to Re^3: perl quicker than bash?
in thread perl quicker than bash?

elsif ( $old_cidr > $new_cidr ) {
should be
elsif ( $new_cidr and $old_cidr > $new_cidr ) {
come to think of it.