Front page | perl.perl5.porters |
Postings from April 2001
April 28, 2001 17:45
Message ID: firstname.lastname@example.org
When one does:
use lib \⊂
sub() is called when searching for a module, and if sub() returns a
open filehandle Perl will read from the handle and use that as the
module to be loaded.
I tried returning a tied filehandle, to avoid using temporary files,
but I've failed to succeed. I can read the data without problems from
the handle, but Perl doesn't like it. If I save the data in a file,
and then reopen it read-only, returning the handle, it works as expected.
Is this a limitation, that you cannot return tied handles? Or do I have
a bug somewhere? (I won't globber the list with the entire program)