Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 27, 2019 23:42
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/aafedc635cf29e89e34d3a94d729bfb9 to your computer and use it in GitHub Desktop.
Save Whateverable/aafedc635cf29e89e34d3a94d729bfb9 to your computer and use it in GitHub Desktop.
evalable6
use MONKEY; my $klass = 'Foo'; my $k = 'class Foo {};'; EVAL $k unless ::{$klass}:exists; EVAL $k unless ::{$klass}:exists
(exit code 1)
===SORRY!=== Error while compiling /home/bisectable/git/whateverable/EVAL_1
Redeclaration of symbol 'Foo'
at /home/bisectable/git/whateverable/EVAL_1:1
------> class Foo⏏ {};
expecting any of:
generic role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment