I am pleased to announce a new version of my Perl One-Liners Guide ebook.
Perl has a feature rich regular expression engine, plenty of builtin modules and a thriving ecosystem. Another advantage is that Perl is more portable. This book will show examples for filtering and substitution features, field processing, using standard and third-party modules, multiple file processing, how to construct solutions that depend on multiple records, how to compare records and fields between two or more files, how to identify duplicates while maintaining input order and so on.
TIL that I can use Perl's Benchmark module to time and compare the performance of different commands in an OS-agnostic way, ie as long as Perl is installed.
For example, to benchmark curl, wget and httpie you could simply run:
I did not find anything mentioning this anywhere, but it is such a basic feature of class based programming, that I can't imagine it is not there, somewhere, somehow.
undefined
class One { method do_it {say 1} }
class Two : isa(One) { method do_it { super()->do_it; say 2} } # or so...
v6 looks like nice and my Raku skills are definitely not at the level that I would need the (albeit very nice) MoarVM stack. So is there like a list of things that have not yet been implemented in the v6-perlito module? It's also nice that it works in different languages, javascript is very optimized and Go can be bytecompiled, so if my stuff is slow with MoarVM, I could always try those others out.