Re: RFC 14 (v2) Modify open() to support FileObjects and
[email protected] (Piers Cawley) 10 Aug 2000 08:41:31 +0100
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
Tom Hughes <[email protected]> writes: > In message <[email protected]> > Tom Hughes <[email protected]> wrote: > > > The suggested syntax does not necessarily conflict with the > > above - the core might spot the xxx: scheme and try and load > > an xxx.pm from some well known path and hand off the open to > > that module. > > To follow up to myself I should add that there is also a second > technique that achieves the same result. > > That is if the core provides a way for modules to register as > handlers for certain types of filename - the when you load a > module like LWP it would register things like http and ftp that > it knows how to handle and open's for those types would be handed > off to the registered handler. I like this better. A lot better in fact. -- Piers