opendir(DIR,'.'); @all_logs = grep /\.log$/, readdir(DIR); for my $log (@all_logs) { # some processing }
In reply to Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?
by larryk
in thread Can I open a specific file (eg. '.log') without knowing the actual name of it?
by trouble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |