in reply to how to make wildcard work in if (-e *..)
An alternative is to use something like:
opendir(DIR, "dir") or die "$!"; my @txt_files = grep {/\.txt$/} readdir(DIR); if (scalar @txt_files > 0) { #do stuff }
Cheers.
BazB
Update: Ooops. Fixed misplaced bracket.
|
|---|