sub test { BEGIN {warn "---- function-scope\n"}; use Module; func("function-scope"); # no Module; # uncommenting will cause a compile-time error } test(); func('filescope');