in reply to Read through directory and return matched data

You might be better off using File::Find module.
  • Comment on Re: Read through directory and return matched data