develooper Front page | perl.perl6.language | Postings from February 2001

Re: Auto-install (was autoloaded...)

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
February 12, 2001 10:58
Subject:
Re: Auto-install (was autoloaded...)
Message ID:
20010212185801.Y3652@plum.flirble.org
On Mon, Feb 12, 2001 at 01:50:39PM -0500, schwern@pobox.com wrote:
> On Mon, Feb 12, 2001 at 04:01:31PM -0300, Branden wrote:

> > >  Loading a Perl module from a filehandle might
> > > screw with <DATA>.
> > 
> > As resource files can be attached to the archive, I think not allowing
> > __DATA__ wouldn't be such a big restriction. I don't know if we can find
> > other workarounds.
> 
> This kills SelfLoader and unsplit AutoLoader modules and similar
> schemes.  AutoLoader isn't so much a problem, since we can just run
> AutoSplit over it.  SelfLoader will be tricky.

I found (no surprise with hindsight) that doing zips with source filters
screwed <DATA> (for want of a better term)
Doing them with sfio made <DATA> work just fine. You got <DATA>
uncompressed as you read it. PerlIO will work the same way
It's only going to screw modules that expect to be able to seek <DATA>
I've not yet met any of them

Autoloader works no problem once all the .al files are in a zip
(it uses require)

s/zip/something else/g to generalise

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About