in reply to Re: Legitimate use for combined 'local' and 'our'
in thread Legitimate use for combined 'local' and 'our'

Not a good enough example as you can freely remove the our in local our, and it will still produce the same result (even under strict). Only if you place the first part in a different scope, and enable strict, you'll see a difference:
#!/usr/bin/perl use strict; use warnings; { our $V = 'non-local'; sub print_v { print "$V\n"; } } { local our $V = 'local'; print_v; } print_v __END__
If you now remove the second our, the program doesn't compile.