Created
October 31, 2018 19:54
-
-
Save Whateverable/bd39208fb15106ccbcce279fb9e338b5 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
class NuclearPowerPlant { has $!uranium; method new ($q) { self.bless: uranium => ($q > 1000 ?? 1000 !! $q) }; method power { say 42/$!uranium } }; NuclearPowerPlant.new(10000000000).perl.EVAL.power |
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) | |
Use of uninitialized value of type Any in numeric context | |
in method power at /tmp/5Pe5414Set line 1 | |
Attempt to divide by zero when coercing Rational to Str | |
in method power at /tmp/5Pe5414Set line 1 | |
in block <unit> at /tmp/5Pe5414Set line 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment