in reply to Re: 'strict refs' + 'strict sub' = suck.
in thread 'strict refs' + 'strict sub' = suck.

Why would you want to return a closed file handle?

return(FILE);

That's the line causing the error. I'm not sure what that subroutine is supposed to do, as it is reading the file into a lexical array, local to the subroutine, and not doing anything with it afterwards. Maybe you want to:

return @avatars;
or:
return \@avatars;

?

Liz