Front page | perl.perl5.porters |
Postings from April 2001
'Loader' subs.
Thread Next
From:
Abigail
Date:
April 28, 2001 17:45
Subject:
'Loader' subs.
Message ID:
20010429004819.24331.qmail@foad.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)
Abigail
Thread Next
-
'Loader' subs.
by Abigail