vkon has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Everyone knows that perl IO could be "intercepted" using PerlIO layer, i.e. one could create file handle that is mapped into memory (or anywhere else)
Is it possible for directories?
Something like Tie::TextDir - but other way round - Tie::TextDir maps directory to tied perl hash, but I want the opposite - any read of said directory should consult my hash (or just call my callback).
To say, tcl/tk have this mechanics.
I wonder - does perl have this possibility?
TIA,
vkon
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: could be directory "virtualized" from perl, like PerlIO but for directories?
by snoopy (Curate) on Feb 07, 2011 at 05:00 UTC | |
by vkon (Curate) on Feb 07, 2011 at 08:05 UTC | |
by Anonymous Monk on Feb 07, 2011 at 08:51 UTC | |
Re: could be directory "virtualized" from perl, like PerlIO but for directories?
by ikegami (Patriarch) on Feb 07, 2011 at 03:19 UTC | |
Re: could be directory "virtualized" from perl, like PerlIO but for directories?
by Anonymous Monk on Feb 07, 2011 at 00:14 UTC | |
by Anonymous Monk on Feb 07, 2011 at 00:17 UTC |
Back to
Seekers of Perl Wisdom