>perl -w test_mod.pltest_mod.pl
Use of uninitialized value $variable in concatenation (.) or string at test_mod.pl line 12.
Use of uninitialized value $variable in say at test_mod.pl line 15. Foo::begin
use strict; use warnings; use feature 'say'; Foo->test(); { package Foo; my $variable = "bar"; BEGIN { say __PACKAGE__."::begin $variable"; } sub test { say $variable; } }
In reply to Use of uninitialised value... but it is defined ?! by seki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |