Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created June 24, 2015 19:05
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 hoelzro/b5a5a7e368adda3797b8 to your computer and use it in GitHub Desktop.
Save hoelzro/b5a5a7e368adda3797b8 to your computer and use it in GitHub Desktop.
use Test;
plan 1;
sub doit() {
# removing LEAVE works
# removing return works
# removing the if True { works
# lifting LEAVE out of the if block works
# lifting return out of the if block works
if True {
LEAVE 1;
return 'ls';
}
}
doit();
pass "I should've reached this point";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment