Skip to content

Instantly share code, notes, and snippets.

@worthmine
Created March 24, 2019 13:09
Show Gist options
  • Save worthmine/d50cc2c1f84ec93e33f7ddf33ca5715a to your computer and use it in GitHub Desktop.
Save worthmine/d50cc2c1f84ec93e33f7ddf33ca5715a to your computer and use it in GitHub Desktop.
Is this a flaw of 'use warnings;' pragma?
use feature qw(say);
use strict;
#use warnings;
our $n = 0;
for ( local our $n = 0; $n < 10; $n++ ) {
say $n;
}
#0
#1
#2
#3
#4
#5
#6
#7
#8
#9
say $n;
#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment