Skip to content

Instantly share code, notes, and snippets.

@eam
Last active May 30, 2018 16:37
Show Gist options
  • Save eam/6e500334c71522ec65a4ab0d4f91e1ca to your computer and use it in GitHub Desktop.
Save eam/6e500334c71522ec65a4ab0d4f91e1ca to your computer and use it in GitHub Desktop.
booger:tmp evan$ cat scope.pl
#!/usr/bin/perl
use strict;
if (1) {
my $scoped = 42;
}
print $scoped;
booger:tmp evan$ perl scope.pl
Global symbol "$scoped" requires explicit package name (did you forget to declare "my $scoped"?) at scope.pl line 9.
Execution of scope.pl aborted due to compilation errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment