in reply to How to create a reusable module with Exporter [SOLVED]

You need to have your Net directory under one of the directories listed in the error message. Temporarily comment out the "use" line in your calling script and add these lines:
use Data::Dumper; print Dumper(\@INC);

Post the exact full path to your Client.pm file.

Replies are listed 'Best First'.
Re^2: How to create a reusable module with Exporter
by thanos1983 (Parson) on Jun 28, 2015 at 00:35 UTC

    Hello toolic,

    Thank you for your time and effort, answering my question.

    The output that I got is:

    $VAR1 = [ '/etc/perl', '/usr/local/lib/perl/5.18.2', '/usr/local/share/perl/5.18.2', '/usr/lib/perl5', '/usr/share/perl5', '/usr/lib/perl/5.18', '/usr/share/perl/5.18', '/usr/local/lib/site_perl', '.' ];

    What do you mean by: Post the exact full path to your Client.pm file.?

    I tried to put on the module BEGIN { push @INC, '/home/username/Desktop/' } but the result is the same.

    Seeking for Perl wisdom...on the process of learning...not there...yet!