to read...while(my $job_B=readdir(DIR_B)){ print "D\n"; next unless $job_B =~ /Out_$tag\.txt$/; }
Sorry that was a bit of perl mixed in with Englishnext unless $job_B =~ /Out_$tag\.txt$/; #.... until you have checked t +he whole directory and then goto: beginning.
In reply to next unless - and then 'until' by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |