If I declare a variable in early stages like BEGIN or INIT then shouldn't the scope be there in the later stages too?$ perl -e 'BEGIN{use strict; our $c=1} print $c' 1 $ perl -e 'use strict; BEGIN{our $c=1} print $c' Variable "$c" is not imported at -e line 1. Global symbol "$c" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors.
In reply to BEGIN blocks and use strict positioning by codeacrobat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |