Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 12, 2019 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/eaec682f2d6b6c5a2fe91365d3a6fbf9 to your computer and use it in GitHub Desktop.
Save Whateverable/eaec682f2d6b6c5a2fe91365d3a6fbf9 to your computer and use it in GitHub Desktop.
evalable6
use lib 'data/all-modules/github/tadzik/Terminal-ANSIColor/';use Terminal::ANSIColor;my %colortable = a =>"red",d =>"yellow",q =>"magenta",r=>"green";my $toformat="Given a ∈ ℤ and d ∈ ℤ+, there are unique integers q and r, with 0 ≤ r < d, st a = d * q + r"; my @letters=@%colortable.keys; $toformat ~~ s:g/ <wb>(@letters)<wb> /{ colored("$0", %colortable{$0}) }/; print $toformat;
(exit code 1)
Type check failed in binding to parameter '$how'; expected Str but got Any (Any)
in sub colored at /home/bisectable/git/whateverable/data/all-modules/github/tadzik/Terminal-ANSIColor/lib/Terminal/ANSIColor.pm (Terminal::ANSIColor) line 60
in code at /tmp/Cw7vuIGfpI line 1
in block <unit> at /tmp/Cw7vuIGfpI line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment