in reply to How to create a reusable module with Exporter [SOLVED]
What toolic is saying, is that you need to actually install your module. In your case, copying it to one of the directories in @INC would be the way a typical CPAN module would do it. This is far from standard, but it'll get you to understand the directory structure needed for installed Perl modules:
sudo mkdir -p /usr/local/share/perl/5.18.2/Net/SNTP sudo cp Client.pm /usr/local/share/perl/5.18.2/Net/SNTP
To create a module for CPAN, there's a bit more to it. It needs several things, including an installer. Here's a bit of a start that should get you on your way: How to make a CPAN Module Distribution. It's an old post, but it's a very good starting point.
-stevieb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to create a reusable module with Exporter [SOLVED]
by thanos1983 (Parson) on Jun 28, 2015 at 01:19 UTC |