By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Try something like this:

--BEGIN THROWN TOGETHER CODE--

$found = 0;

while($line = ) {
chomp $line;
($ser_range, $grade, $size, $model, $jewels, $run, $year) = split(/\,/, $line);
($low, $high) = split(/-/, $ser_range);
if ($ser_in = $low) {
$found = 1;
last;
}
}

if($found == 1) {...}

else {...}

--END THROWN TOGETHER CODE--

That code was tossed together really quick. You need to open the file and get $ser_in from the browser yourself. I don't know for sure that code'll work, but it should get you started.