use strict; use warnings; package new; $new::variable = 1; $another_variable = 2; 1;
When I right a code like this, I get error for not declaring $another_variable and there is no error for not declaring $variable. Why is so?
I thought, it will raise error for both cases. Someone please explain, how both are different.
Thanks.
In reply to Variable declaration by nagalenoj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |