- or download this
use strict; #<--****
use warnings; #<---***
- or download this
$main::x = 10;
print $main::x, "\n"; #10
- or download this
use vars qw{$x};
print $x, "\n"; #10
- or download this
# $y = 'hello'; #error under use strict
our $y = 'hello';
print $y, "\n"; #hello
- or download this
{
our $z = 5;
...
print $s, "\n"; #bye