On 31 Aug 2000 06:22:10 -0000, Perl6 RFC Librarian wrote:
>Perl should have a print operator
>Perl supplies an operator for line input - angle brackets. This is no
>analogous operator for output. I propose "inverse angle brackets":
>
> >"Print this line.\n"<;
This is not symmetrical.
For input, the handle is marked as a source:
$data = <STDIN>;
In order to be symmetrical, your ousput handle should look and act like
a sink:
>STDOUT< = $data;
There. Now it's symmetrical.
I doubt if it has any advantage over print. But then OTOH we could just
replace <HANDLE> with readline(HANDLE). Same thing.
--
Bart.
- Re: RFC 39 (v3) Perl should ... Tom Christiansen
- Re: RFC 39 (v3) Perl should ... Ask Bjoern Hansen
- Re: RFC 39 (v3) Perl should ... Bart Lateur
- Re: RFC 39 (v3) Perl should ... Chaim Frenkel
- Re: RFC 39 (v3) Perl should ... Ask Bjoern Hansen
- Re: RFC 39 (v3) Perl should ... Jonathan Scott Duff
- Re: RFC 39 (v3) Perl should have a print ... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print oper... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print ... Jon Ericson
- Re: RFC 39 (v3) Perl should have a pr... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print operator Bart Lateur
- Re: RFC 39 (v3) Perl should have a print operator Jon Ericson
- Re: RFC 39 (v3) Perl should have a print oper... Peter Scott
