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

Reply via email to