Re: RFC 14 (v2) Modify open() to support FileObjects and
[email protected] (Graham Barr) Wed, 9 Aug 2000 17:45:27 +0100
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 09, 2000 at 11:41:42AM -0500, Jonathan Scott Duff wrote: > How about this? > > open '/etc/passwd'; # file OK > open '/usr/local/bin/'; # directory (note the trailing '/') Portability, not all platforms use / > open 'ftp://ftp.perl.org/'; # ftp What user/password does it use > open 'http://www.yahoo.com/'; # http will it support cookies, authentication ? > open 'ldap://ldap.bigfoot.com/';# ldap maybe. My point is that many of these protocols are more complex than I would certain want open to handle. Leave the complex stuuf to those modules and use the API they provide. Graham.