You could easily wrap in a foreach block if you have multiple directories specified. LR Whip me, Beat me, Make me use Y-ModemG. Update: Also, I might add, Learning Perl and Perl Cookbook are invaluable resources to have on hand.opendir(DIR, $directory) or die "Failed to open $directory: $!"; while (defined($filename = readdir(DIR))) { #Do stuff to each file $filename } closedir(DIR);
In reply to Re: Variable numbers of folders...
by LazerRed
in thread Variable numbers of folders...
by bioinformatics
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |