|
|
|
|
|
by colomon
2793 days ago
|
|
print in Perl 6 works the same as print in Perl 5. put/say are output functions which automatically add a newline at the end. If you want fancier formatting, printf is available as well. And notice the relative lengths of these names. As much as possible, p6 is organized so that the more commonly used thing will have the shorter name. PS I don't think I have ever used put in p6. My code uses say, or print if I don't want a newline added to the output. |
|