Created
September 12, 2019 00:22
-
-
Save Whateverable/eecafae9332333ecb5fa4d23611ba445 to your computer and use it in GitHub Desktop.
evalable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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