My first date with Raku

https://perlweeklychallenge.org/blog/my-first-date-with-raku

1 Comment

Hi Mohammad, I'm commenting here because I cannot do so on the page you linked to. Just one short point. You say: "This is Raku, so everything has to be in MAIN()." That's not true. You can have a MAIN subroutine (or even several multi MAIN subroutines), but you don't have to have any. Using a MAIN subroutine is especially useful when you're passing parameters to the program, because the signature of the MAIN subroutine can be used to validate the parameters passed to the program. When passing no parameters to the program, having a MAIN subroutine is much less useful. In the case of your example program, this is not really useful (but it doesn't matter, it works fine).

Congratulations for starting Raku.

Leave a comment

About Mohammad S Anwar

user-pic CPAN Contributor. Co-editor of Perl Weekly newsletter. Run Perl Weekly Challenge @PerlWChallenge. Father of 3 angels. Indian by birth, British by choice.