package Skywalker; require Exporter; @ISA = qw(Exporter); use strict; our @EXPORT = qw(ReadConfig); sub ReadConfig { my ($file) = shift; warn " --- going to read config file: $file ---\n"; # more steps here } 1; #### #!/usr/bin/perl use warnings; use strict; use Skywalker; ReadConfig('/tmp/simple.cfg'); #### perl walktest.pl --- going to read config file: /tmp/simple.cfg ---