@files = glob('*.log'); if(@files == 1) { open(FILE, $files[0]); } else { #do something here }
In reply to Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?
by Anonymous Monk
in thread Can I open a specific file (eg. '.log') without knowing the actual name of it?
by trouble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |