use strict;
use warnings;
package MyPaths;
use parent 'Exporter';
our @EXPORT_OK = qw/$pathfoo $pathbar/;
our $pathfoo = '/path/foo';
our $pathbar = '/otherpath/bar';
1;
####
#!/usr/bin/env perl
use strict;
use warnings;
use lib '.';
use MyPaths '/path/';
print "paths are $pathfoo and $pathbar\n";
####
$ ./importtest.pl
paths are /path/foo and /otherpath/bar
$