Last active
May 30, 2018 16:37
-
-
Save eam/6e500334c71522ec65a4ab0d4f91e1ca 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
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