in reply to script problems1

This would easily be solved (I believe) if you use strict; and -w in the first line. Namely:
$teampos = $I;
prior to your select statements seems highly questionable: you don't define $I, you define $i (case is sensitive). Since $I is undefined, it's not being set.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain