> 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). -Nate
- 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
- Re: RFC 14 (v2) Modify open(... Tom Hughes