This uses the glob feature. By the way, make sure your chdir call succeeds.chdir("c:/tdt/src") || die "trying"; # Or whatever works foreach my $tdt (<*.tdt>) { system("$BASEDIR/nbsstools/tdtgen/bin/tdtgen", $tdt); }
In reply to Re: Find Files in Directory Matching Pattern
by tadman
in thread match names
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |