Created
August 19, 2016 23:15
-
-
Save exodist/205a49d69c02086e09e1cdb01bbfdd44 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| sub foo(&) { | |
| my $code = shift; | |
| my @got = $code->(); | |
| die "codeblock returned stuff, it should not" if @got; | |
| } | |
| sub blah { | |
| return 1 if defined wantarray; | |
| return; | |
| } | |
| foo { blah() }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment