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.

> =head1 REFERENCES
> 
> http://dev.perl.org/rfc/39.pod
> http://dev.perl.org/rfc/61.pod

perlopentut
perlfunc/open

Jon
-- 
Knowledge is that which remains when what is
learned is forgotten. - Mr. King

Reply via email to