As PerlIO-enabled perls will become more common with perl 5.8,
people will write PerlIO layers.

The PerlIO:: namespace is there for layers implemented in C.
However it's possible to write layers in perl, by providing
a tie-like interface (as documented in the PerlIO::Via docs.)
Any perl module implementing this interface can act as a
PerlIO layer (e.g. MIME::QuotedPrint in perl 5.8) -- but we
don't have currently a namespace for modules whose only purpose
is to implement a layer in perl. (This would be the equivalent
of Tie::, used for modules whose only purpose is to implement
a tied variable.)

I propose the creation of Layer:: for these modules.

Rationale :
     open my $fh, '<:Via(Layer::Foo)', 'file';
looks nice in plain english (open my file via the layer "foo").

(PS. I've already a perlio layer module to upload to CPAN.)

-- 
Rafael Garcia-Suarez

Reply via email to