- or download this
{
my $foo = 1;
...
}
print level();
__END__
- or download this
Can't localize lexical variable $foo at __FILE__ line __LINE__.
- or download this
{
local *foo = sub : lvalue { print "wuff: $foo\n"; $foo };
}
- or download this
$\ = "\n";
$foo = 3;
...
4: 2.5
5: 3.125
6: 3
- or download this
local foo() = 2;
- or download this
Useless localizing of a subroutine return value