C
Charles R. Thompson
I've been working on a script to parse IP addresses for a web reporting
system and found an oddity I can't explain. This is probably somethign
perfectly elementary but it escapes me. Given this logic where $1=211,
$lowrange=208 and $highrange=211 the OutputHTML, etc is never called. If I
extend highrange to 212 then everything is fine.
I'm just going to assume I've done something perfectly dumb cause I don't
get it. Am I doing something incorrect with some operators here?
if (($1 >= $lowrange) && ($1 <= $highrange)){
OutputHTML($AddressAliases{$entry}, $addresstoreplace);
$found = 1;
last;
}
system and found an oddity I can't explain. This is probably somethign
perfectly elementary but it escapes me. Given this logic where $1=211,
$lowrange=208 and $highrange=211 the OutputHTML, etc is never called. If I
extend highrange to 212 then everything is fine.
I'm just going to assume I've done something perfectly dumb cause I don't
get it. Am I doing something incorrect with some operators here?
if (($1 >= $lowrange) && ($1 <= $highrange)){
OutputHTML($AddressAliases{$entry}, $addresstoreplace);
$found = 1;
last;
}