Re: RFC 39 (v3) Perl should have a print operator
[email protected] (Tom Christiansen) Tue, 05 Sep 2000 18:32:32 -0600
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <29307.968200352@chthon> |
>Jon Ericson wrote:
>>
>> Agreed. Good style would avoid this problem. The example in the
>> synopsis of this RFC should be:
>>
>> my $output = >"Print this line.\n"<;
>Would this be solved if print returned the string it printed? This seems
>to be what everyone's getting at:
> my $output = print $r->name . " is $age years old\n";
*Why* would you want that? What's the practical use? I cannot ever
recall writing, or wishing for, anything like this:
sub what_print_would_print_if_print_would_print_what_print_would_print {
return join($, => @_) . $\;
}
--tom