in reply to LWP Browser->Get Challenge
Well if your loop is ending early then it must be check_tmp() that's the problem.
BTW If you want a number with leading zeros, I think it easier to use sprintf, so something like this:-
my $filename = sprintf( "%s%03d.xml",$path,$count);
In Section
Seekers of Perl Wisdom