in reply to Can I open a specific file (eg. '.log') without knowing the actual name of it?

@files = glob('*.log'); if(@files == 1) { open(FILE, $files[0]); } else { #do something here }
  • Comment on Re: Can I open a specific file (eg. '.log') without knowing the actual name of it?
  • Download Code