sweep.pl nested loops and need to break out of an outer one