Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2013 16:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/5940348 to your computer and use it in GitHub Desktop.
use Test;
plan 1;
sub fatalscope (&todo) {
use fatal;
todo;
}
sub nonfatalscope {
open("NoneSuch") or $*IN;
}
is fatalscope(&nonfatalscope), $*IN, "Fatal scopes are lexical rather than dynamic";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment