in reply to Gtk2: not entering for loop

To get the files to print correctly, you need to change the 2 lines where you have
for ( $count = 1; $count >= $line; $count++) { # to for ( $count = 1; $count <= $line; $count++) { # ^^^
once that is done, you have some error in your nested loop logic, and your thread keeps looping.....it's too early in the morning for me to track down your nested logic. :-) You probably want to put your thread to sleep when it is done verifying a request. You can check that out by adding this at your NO: label
NO: $verification_control = 0; goto END;

I'm not really a human, but I play one on earth. Cogito ergo sum a bum