in reply to Can't open file ARRAY

Your code fragment doesn't contain a call to open, nor does it contain a die() capable of generating the stated error message. However, it looks like you are using a reference to an array instead of a file as argument to open. But this is guessing, as all we see the output of some unknown die() call, and not the context.

Abigail