Brian May wrote: > I strongly suspect that problem is that the break cannot exit from the > while loop. As a test example: > > perl -e 'while (1) { print "hi\n"; break; }' > > this never exits the loop. Then again does break even exist in perl?? > I think the fix is to replace "break" with "last". Not tested.
Yes, of course it is. To illistrate: [EMAIL PROTECTED]:~>perl -e 'there_is_no_perl_command_with_this_name' [EMAIL PROTECTED]:~>perl -we 'there_is_no_perl_command_with_this_name' Useless use of a constant in void context at -e line 1. This is why you should always use -w. 'last' is the correct command. -- see shy jo