Re: RFC 39 (v3) Perl should have a print operator

[email protected] (Bart Lateur) Sun, 03 Sep 2000 13:07:53 +0200
Newsgroups perl.perl6.language.io
Organization MediaMind
Message-ID <[email protected]>
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.