How good would perl 5/6 be for this?
If not perl, anything similar that's not python? I want to learn something new.
How good would perl 5/6 be for this?
If not perl, anything similar that's not python? I want to learn something new.
https://perl6advent.wordpress.com/2018/12/16/day-17-checking...
I walk through the development of a utility for auditing Santa's Naughty and Nice lists. Along the way, I introduce literate programming, multiple dispatch, types, type subsets, links to documentation, perl6 collections, and File IO. And, I've been told I managed to do all this without making the reader they've been dragged over rough ground behind a certain festive sleigh.
The key thing to remember when you start learning a Larry Wall Language is that you only need to worry about the parts you need to worry about. It's more like learning a natural language than a programming language. Learn how to say the things that are important to you, and it will serve you well even if you speak with an accent.
#!/bin/bash
echo hello
change to #!/usr/bin/env perl6
shell "echo hello"
then for arguments, try making `foo.p6` #!/usr/bin/env perl6
unit sub MAIN($name,:$times,:$language);
say $name, $time, $language
and run ./foo.p6 --helpIt even has built-in multi-dispatch command-line arg-processing: https://docs.perl6.org/language/create-cli