#!/usr/bin/perl -w use strict; use My::Module; my $foo = "some string" my $bar = Somefunction(); #### package My::Module; our @EXPORT = qw/Somefunction/; use Exporter; our @ISA = qw/Exporter/; sub Somefunction { # do something; }