package A; package B; our $d = 1; package C; package D; print $d;
the above prints 1,but how does it work actually?
$d is not defined in package D, how can it be printed directly?
In reply to Perl syntax by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |