Perl6 RFC Librarian wrote: > =head2 Extensible Class Bindings > > In addition to the standard file form, C<open()> can also now take an > optional class name from which to load the appropriate methods. This > gives us easy access to methods that open Directory, Socket, HTTP, FTP, > or other types of files, meaning we no longer have to start from the > ground up every time we want to open a new type of "file". It occurs to me that one could embed the class name right in the first argument: $perl = open 'ftp://ftp.linux.activestate.com/pub/staff/gsar/APC/' or die "ActiveState ftp site is hosed again: $!"; Hey that looks familiar. (http://www.w3.org/Addressing/) Jon -- Knowledge is that which remains when what is learned is forgotten. - Mr. King
- Re: RFC 14 (v2) Modify open() to support FileObjects a... Chaim Frenkel
- Re: RFC 14 (v2) Modify open() to support FileObje... Nathan Wiger
- Re: RFC 14 (v2) Modify open() to support FileObje... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open() to support File... Nathan Wiger
- Re: RFC 14 (v2) Modify open() to support FileObje... Jon Ericson
- Re: RFC 14 (v2) Modify open() to support File... Nathan Wiger
- Re: RFC 14 (v2) Modify open() to support ... Jonathan Scott Duff
- Re: RFC 14 (v2) Modify open() to supp... Graham Barr
- Re: RFC 14 (v2) Modify open() to... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open(... Jonathan Scott Duff
- Re: RFC 14 (v2) Modify o... Chaim Frenkel
- Re: RFC 14 (v2) Modify o... Nick Ing-Simmons
- Re: RFC 14 (v2) Modify open(... Piers Cawley
- Re: RFC 14 (v2) Modify o... Bart Lateur
- Re: RFC 14 (v2) Modify open() to... Tom Hughes