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:
or:return @avatars;
return \@avatars;
?
Liz
In reply to Re: Re: 'strict refs' + 'strict sub' = suck.
by liz
in thread 'strict refs' + 'strict sub' = suck.
by toonski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |