Today around 3:54pm, Graham Barr hammered out this masterpiece:
: On Wed, Aug 09, 2000 at 07:41:54AM -0700, Nathan Wiger wrote:
: > > 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: $!";
: >
: > Yeah, the next version is going to include a syntax that's very similar
: > to this, although a little more Perlish:
: >
: > open '/etc/passwd'; # file is implied
: > open ftp 'ftp://ftp.linux.activestate.com/'
: > open dir '/usr/local/bin'
: > open http 'http://www.yahoo.com/'
: >
: > This will have the nice benefit of fitting within Perl's
: > already-existing indirect object notation (so it can call ftp->open,
: > dir->open, file->open, etc).
This is nutso... shall we open->ssh and open->telnet and
open->any_protocal_under_the_sun in the core?
: So in other word you are suggesting packages of these names which all
: define an open method. IMO, that would be better than trying
: to overload the open operator in umpteen different ways.
This sounds nice, anyone want to pick a namespace instead of Top Tier?
This is actually something that could be implemented now, oh wait, it is.
--
print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=>
'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n";
print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig};
my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot EDU>