Re: RFC 14 (v3) Modify open() to support FileObjects and
[email protected] (Jonathan Scott Duff) Sat, 12 Aug 2000 14:55:20 -0500
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 11, 2000 at 02:58:34PM -0700, Nathan Wiger wrote: > > > # Open a remote webpage > > > $http = open http "http://www.perl.com/", GET; > > ^^^^ ^^^^^ > > 1) > The URL says that it's a http resource, so why do we have > > to tell open to use a http handler? > > a) Allows custom handlers: > > open myhttp "http://www.perl.com/"; I originally didn't like this but the more I think about it, the more I like it ... as long as the default handler knows about URIs :-) I'd like open "http://www.perl.com"; do DWIM. -Scott -- Jonathan Scott Duff [email protected]