#test.pm use strict; use warnings; use Data::Dumper; package Misc::Test; use base 'Exporter'; our @EXPORT_OK = ('test_function'); my $test = "test"; sub test_function { print Dumper($test); }