$ 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.