$INDEXFILE is a lexical variable, and you're not returning that lexical variable but a reference to the global glob referenced by the string version of $INDEXFILE. That's most likely not what you want. Just return $INDEXFILE instead.
Of course, it would have helped us help you better if you had shown us the actual error message you got.
In reply to Re: Is it a filehandle or a obj refference?
by Corion
in thread Is it a filehandle or a obj refference?
by jiwei800715
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |