On Mon, 2005-05-02 at 16:13, Mark Reed wrote: > On 2005-05-02 15:52, "Juerd" <[EMAIL PROTECTED]> wrote: > > > Gaal Yahas skribis 2005-05-02 22:25 (+0300): > >> > open 'ls', '|-'; # or even > >> > open 'ls', :pipe => 'from' > > > > I dislike the hard-to-tell-apart symbols '<' and '>' for modes. 'r' and > > 'w' are much easier, and get rid of the awful left/right "mnemonic" that > > fails to make sense to GUI users. > > > Holy matter of opinion, Batman. ¼<¼ and ¼>¹ are much easier to tell apart > than ¼r¹ and ¼w¹;
As far as matter of opinion... yeah, I'm seeing a lot of that recently. I would expect "open" to be a bit of an anachronism in P6, but still used fairly often. For the most part, I would expect that: my IO $read_fh = '/some/path' => 'r'; # Get an IO::File (is IO) my IO $write_fh = '/other/path' => '>'; # Get IO::File my IO $pipe_fh = 'program args' => $IO::ReadPipe; # Get IO::Pipe my IO $sock_fh = 'http://www.perl.org/' => $IO::URI; # Get IO::Socket would just DWIM. But, perhaps I'm expecting too much... -- Aaron Sherman <[EMAIL PROTECTED]> Senior Systems Engineer and Toolsmith "It's the sound of a satellite saying, 'get me down!'" -Shriekback