Michele Dondi writes:
> On Tue, 13 Jul 2004, Michele Dondi wrote:
> 
> > I rather have a much "bigger" wish for an open-like operator that to be
>                                                       ^^^^^^^^
> 
> Of course that should be "function".
> 
> > I'm thinking of an operator that returns a "magical" FH working like the 
>                                    ^^^^^^^
> [snip]
> >   openmany my $fh, [list];
> 
> And it should assign to an undefined scalar variable, rather than 
> returning the filehandle, for consistency with open().

How very convenient, because in Perl 6, open *does* return the file
handle.  Valid Perl 6 code ahead:

    my $fh = open 'foo.bar';
    for <$fh> {              # note, not while
        # do stuff
    }

Luke

Reply via email to