in reply to Re^3: How do I read files in a directory and not directories?
in thread How do I read files in a directory and not directories?

If you remove the undefs, you can still trap that case by using if (@files - @tags)