develooper Front page | perl.perl6.language | Postings from October 2018

Re: "put" vs "say"

Thread Previous | Thread Next
Timo Paulssen
October 21, 2018 16:31
Re: "put" vs "say"
Message ID:
put is meant for machines, while say is meant for humans.

this is implemented by having say call the .gist method and put calling
the .Str method.

Try using say and put on a list of a thousand elements or more and
you'll see what I mean.

  - Timo

On 21/10/2018 18:29, Parrot Raiser wrote:
> "put" and "say" seem to be redundant, but I'm sure there's a good
> reason for having 2 output commands.
> Would anyone care to comment on how they differ and why, or point to
> an explanation?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About