kentfredric (owner)

Revisions

gist: 183045 Download_button fork
public
Public Clone URL: git://gist.github.com/183045.git
Embed All Files: show embed
/root/path/lib/My/Module.pm #
1
2
3
4
5
6
7
8
9
package My::Module;
use strict;
use warnings;
 
sub foo {
   print "Yes!";
}
 
1; # this is needed to indicate successful load.
somewhereelse.pl #
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
 
use strict;
use warnings;
 
use lib '/root/path/lib/';
 
use My::Module;
 
My::Module::foo();