unless( glob "*" ){ print "empty dir\n" }else{ print "non-empty dir\n" } [download]
In reply to Re: checking to see if a directory is empty by sh1tn in thread checking to see if a directory is empty by drum1981