thanks for the code, however i made some modifications so it keeps asking you for the pass. instead of just 3 times, also when i enter the pass, it doesn't allow me to type any more, is this a result of me making a modafication to the code? heres the part i put in

Really stuck on using a while loop, huh?
Are you still calling the &checklogin routine? With the while loop, you shouldn't be. also, remove the last ; from the line that reads
chomp ($login); };
also, you need to call the &runprogram routine once the while loop evaluates false and exits. So: