Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 12, 2019 00:22
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/eecafae9332333ecb5fa4d23611ba445 to your computer and use it in GitHub Desktop.
Save Whateverable/eecafae9332333ecb5fa4d23611ba445 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=<a d q r>; $toformat ~~ s:g/ <wb>(@letters)<wb> /{ colored("$0", %colortable{$0}) }/; print $toformat;
(exit code 1)
===SORRY!=== Error while compiling /tmp/XqK3T4EXCw
Variable '@letters' is not declared. Did you mean '$letters'?
at /tmp/XqK3T4EXCw:1
------> tters=<a d q r>; $toformat ~~ s:g/ <wb>(⏏@letters)<wb> /{ colored("$0", %colortab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment