Jon Ericson wrote:
>
> Perl6 RFC Librarian wrote:
> > =head1 DESCRIPTION
> >
> > I think we've got file re-opening already, some how; this
> > proposal overloads the less than and greater than operators
> > in order that subsequent statements,
> > particularly external routines that will be looking to
> > a file descriptor table for their file handles, will get from
> > and give to where we want them to.
>
> Currently you can do this sort of thing with open. From perlopentut:
>
> open(STDIN, "< datafile")
> || die "can't open datafile: $!";
>
> open(STDOUT, "> output")
> || die "can't open output: $!";
>
> and from perlfunc/open:
>
> open(STDERR, ">&STDOUT) || die "Can't dup stdout: $!";
>
> I don't find this hard to read or write. I think overloading < and >
> to do this would be confusing and rarely used.
>
Au contraire - I'd use it in a heartbeat. Besides, I bet that with the
judicious use of overload, you could probably simulate it in current
Perl.
--
Matthew O. Persico
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
____________NetZero Free Internet Access and Email_________
Download Now http://www.netzero.net/download/index.html
Request a CDROM 1-800-333-3633
___________________________________________________________