package Spin::Command::spin; our $foo = "Bar"; sub func { print "Foo:$foo"; } #### { package Spin::Command::spin; print "Foo:$foo"; }