in reply to What does "requires explicit package name" mean?
where did you put the my's in?
if you did it at the first instance of the variables, the the use outside the while loop will still cause problems (as its local to the loop). if you stick the declarations before the begining of the while loop it stands a better chance of working.
Define stuff at the top, unless its temporary and used only within a loop. easier to find it with a program of this size.