Thanks for the suggestions. I ran a couple of tests:
my $data_list = 1..1001;
say $data_list;
produces
1..1000
real0m0.357s
user0m0.435s
sys 0m0.048s
my $data_list = 1..1001;
put $data_list;
produces the list of integers from 1 to 1001 (obviously a single string).
real0m0.470
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.
HTH
- 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?