- or download this
{
$x = 1;
...
$x = 2;
}
}
- or download this
{
my $x = 1;
...
my $x = 2;
}
}
- or download this
{
$x = 1;
...
my $x = 2;
}
}
- or download this
{
my $x = 1;
...
my $x = 2;
}
}
- or download this
{
my $x = 1;
...
$x = 2;
}
}
- or download this
{
my $x = 1;
...
$x = 2;
}
}
- or download this
{
my $x = 1;
...
my $x = 2;
}
}
- or download this
{
my $x = 1;
...
my $x = 2;
}
}
- or download this
sub foo {
if (1) {
...
}
print $x;
}
- or download this
sub foo {
if (1) {
...
}
print $x; # undeclared
}
- or download this
sub add {
$x = 0;
...
}
print $x;
}
- or download this
sub add {
my $x = 0;
...
}
print $x; # prints 0
}
- or download this
use automine
# our $var;
...
$var = shift; # not 'my $var' if explicit 'our $var' exists
...
}