Want to use numbers that are represented in something other than base 10? That’s no problem in Perl 6. Some languages throw you a bone with binary, octal, or hexadecimal […]
Read moreCategory: Kickstarter Tips
Quick Tip #19: Build reusable data types
Perl 6 lets you constrain variable values with types, but you don’t have to limit yourself to the built-in types. Once defined, these act like the built-in types. Here are […]
Read moreQuick Tip #18: Short circuit subroutines with multi
In yesterday’s Quick Tip I used the Fibonacci sequence as an example to show off Rakudo’s –profile option. In today’s tip I’ll use that same sequence to show off Perl […]
Read moreQuick Tip #17: Rakudo’s built-in profiler
Rakudo comes with a built-in profiler. Invoke the program with the –profiler option and $ perl6 –profiler some_script.p6 … output … Writing profiler output to profile-1480712222.02931.html That profile is an […]
Read moreQuick Tip #15: Phasers
Perl 6 has phasers, which are subroutines that run at particular times despite their spatial placement inside the the program text. As a program moves from one thing to another, […]
Read moreQuick Tip #14: Myriad output routines
Perl 6 has many ways to output things. Here’s a table of the various routines you may want, along with their subtle differences.
Read moreQuick Tip #13: Kapreker’s Constant
A Kaprekar’s Constant is the number you end up with when you repeatedly substract the descending digits of a four digit number from the ascending digits. This is mostly a […]
Read moreQuick Tip #12: Unicode Helper Apps
Perl 6 uses fancy Unicode characters to do some of its work, but those don’t show up on most keyboards. I like the Mac program UnicodeChecker. I can search by […]
Read moreQuick Tip #11: Number, Strings, and NumberString Allomorphs
Perl 6 has a variety of ways to quote things (maybe too many), but they aren’t all the same thing. The angle-bracket quote words, <…> isn’t just qw// written with […]
Read moreQuick Tip #10: Syntax highlighting Perl 6
So far, my quick tips haven’t been that quick. I’ve gotten mired in the tarpit of tracking down weird behaviors and whatnot. Here’s a truly quick tip. If you have […]
Read more