Tom Hughes <[EMAIL PROTECTED]> writes: > In message <[EMAIL PROTECTED]> > Graham Barr <[EMAIL PROTECTED]> wrote: > > > On Wed, Aug 09, 2000 at 11:41:42AM -0500, Jonathan Scott Duff wrote: > > > > > open 'ftp://ftp.perl.org/'; # ftp > > > > What user/password does it use > > Whatever you put in the URL with anonymous as default. Or, if you make open behave like tie, then you'd have open templated like 'sub open ($;@);' and then do. open 'ftp://ftp.perl.org/', 'anonymous', '[EMAIL PROTECTED]'; > > > open 'http://www.yahoo.com/'; # http > > > > will it support cookies, authentication ? > > No reason why not. Similarly this could be: open 'http://www.yahoo.com/', user => $user, pass => $pass, cookie_jar => HTTP::Cookies->new; Just let the appropriate module get the argument list passed to it a la TIEFOO. -- Piers
- Re: RFC 14 (v2) Modify open() to support File... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open() to support ... Jonathan Scott Duff
- Re: RFC 14 (v2) Modify open() to supp... Chaim Frenkel
- Re: RFC 14 (v2) Modify open() to supp... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open() to support ... Piers Cawley
- Re: RFC 14 (v2) Modify open() to supp... Bart Lateur
- Re: RFC 14 (v2) Modify open() to support File... Tom Hughes
- Re: RFC 14 (v2) Modify open() to support ... Tom Hughes
- Re: RFC 14 (v2) Modify open() to supp... Chaim Frenkel
- Re: RFC 14 (v2) Modify open() to supp... Piers Cawley
- Re: RFC 14 (v2) Modify open() to support ... Piers Cawley
- Re: RFC 14 (v2) Modify open() to support File... Jonathan Scott Duff
- Re: RFC 14 (v2) Modify open() to support FileObje... Nathan Wiger
- Re: RFC 14 (v2) Modify open() to support File... Nathan Wiger
- Re: RFC 14 (v2) Modify open() to support File... Johan Vromans
- Re: RFC 14 (v2) Modify open() to support File... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open() to support FileObjects a... Graham Barr
- Re: RFC 14 (v2) Modify open() to support FileObje... Casey R. Tweten
- Re: RFC 14 (v2) Modify open() to support File... Nathan Wiger