Re: RFC 14 (v2) Modify open() to support FileObjects and

[email protected] ((Johan Vromans)) 11 Aug 2000 09:46:06 +0200
Newsgroups perl.perl6.language.io
Message-ID <[email protected]>
Nathan Wiger <[email protected]> writes:

>    open 'http://www.yahoo.com/';
>    open 'https://www.etrade.com/';        # what module? https?
> 
> No matter what, you're going to have to embed something in there that
> decides for you what todo. What if an "httpx:" method comes out?? Will
> Perl < 6.2.1 (when the "httpx:" hook was added) not work?

open 'foo:bar' would search for module open::foo and pass 'bar' to its
'open' method. Modules that are explicitly 'use'd can register access
protocols as well.

Considering that many common tools (Windows Explorer, StarOffice, KDE,
...) generalize filenames and URLs, perl should be able to do that,
too.

-- Johan