I apologize if this question is very simple or redundant but I can't figure out how to move a cpan module from local bin to @INC, so it's accessible to other users.
I have root rights and used sudo cpan File::Find::Rule
to install on Linux server.
When I type perldoc -l File::Find::Rule
a local path is returned:
/usr/local/share/perl5/File/Find/Rule.pm
How do I get this module in @INC? thank you
Some modules that I'm using are in @INC and others in a local share. The following code gives me an error message that File::Find::Rule is not loaded.
##!/usr/bin/perl
use strict;
use warnings;
use lib '/usr/lib64/perl5/vendor_perl/List/';
use lib '/usr/lib64/perl5/vendor_perl/Data/';
use lib '/usr/local/share/perl5/File/Find/';
my $base_dir = '/data/results';
my @dirs = File::Find::Rule->maxdepth(1)->directory->in($base_dir);