Created
March 24, 2019 06:01
-
-
Save worthmine/83c70d665e329fa44e8b6979b1ddb494 to your computer and use it in GitHub Desktop.
declaration local & our at same line
This file contains 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
use feature qw(say); | |
use strict; | |
use warnings; | |
for ( local our $n = 0; $n < 10; $n++ ) { | |
say $n; | |
} | |
#0 | |
#1 | |
#2 | |
#3 | |
#4 | |
#5 | |
#6 | |
#7 | |
#8 | |
#9 | |
say our $n; | |
#10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment