use strict; use warnings; package MyClass { use parent 'Exporter'; our @EXPORT = 'foo'; sub foo { 42 } }; 1;