Re: RFC 30 (v2) STDIN, STDOUT, and STDERR should be renamed
[email protected] (Nick Ing-Simmons) Wed, 16 Aug 2000 20:27:04 +0000
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <E13P9mC-00031b-00@roam1> |
Perl6 Rfc Librarian <[email protected]> writes: > >In addition, this RFC recommends deprecating select(), since it is no >longer needed with the new fileobject approach described in RFC 14. > > > $oldoutput = select($newoutput); > >Can now be written simply as reassignments: > > $oldoutput = $STDOUT; > $STDOUT = $filehandle; But that is _NOT_ what select() does: $olddef = select($newdef); print $STDOUT "Still goes to $STDOUT"; print "This goes to $newdef"; select sets the default for a print with no handle specified it does NOT change STDOUT. It will be impossible to translate many perl5 programs to perl6 if that difference is not retained somehow. -- Nick Ing-Simmons