develooper Front page | perl.perl6.language.io | Postings from September 2000

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

From:
Nathan Wiger
Date:
September 5, 2000 16:46
Subject:
Re: RFC 39 (v3) Perl should have a print operator
Message ID:
39B585BB.7450C32@west.sun.com
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";

I think the syntax of >< is bad, but the overall idea is good.

-Nate



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About