> > # Open a remote webpage > > $http = open http "http://www.perl.com/", GET; > ^^^^ ^^^^^ 1) > The URL says that it's a http resource, so why do we have > to tell open to use a http handler? a) Allows custom handlers: open myhttp "http://www.perl.com/"; b) Handles stuff without requiring URI syntax: open dir "C:\Windows\System"; # the "C:" handler? 2) > We are opening it for input ("If MODE is '<' or nothing, > the file is opened for input." -- perlfunc), so why do we > have to tell open to use the GET method? Fine with me - here's a stab at http MODES: < = GET # optional < > = PUT >+ = POST << = HEAD # ?????? -Nate
- RFC 14 (v3) Modify open() to support FileObjects and Perl6 RFC Librarian
- Re: RFC 14 (v3) Modify open() to support FileObje... Jon Ericson
- Re: RFC 14 (v3) Modify open() to support File... Nathan Wiger
- Re: RFC 14 (v3) Modify open() to support ... Jon Ericson
- Re: RFC 14 (v3) Modify open() to supp... Nathan Wiger
- Re: RFC 14 (v3) Modify open() to... Jon Ericson
- Re: RFC 14 (v3) Modify open(... Nathan Wiger
- Re: RFC 14 (v3) Modify o... Jonathan Scott Duff
- Re: RFC 14 (v3) Modify o... Nathan Wiger
- Re: RFC 14 (v3) Modify o... Jonathan Scott Duff
- Re: RFC 14 (v3) Modify o... Nathan Wiger
- Re: RFC 14 (v3) Modify o... Casey R. Tweten
- Re: RFC 14 (v3) Modify o... Jonathan Scott Duff