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

Reply via email to