example: there are 100 files in folder and its being processed. is folder is empty then stop else continue to check until its empty.
using following code to see dir is empty or notThanks,use strict; use warnings; if (scalar </tmp/dipesh/*>) { print "not empty"; } else { print "Empty"; }
In reply to run program until directory is not empty by dipesh777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |