$fileGlob = '/var/adm/messages.*'; my @file = glob $fileGlob; if(not @file) { # glob was wrong or there were no files } for (@file){ # do some things to check each file }
Makeshifts last the longest.
In reply to Re: testing a file glob
by Aristotle
in thread testing a file glob
by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |