Is the @INC directory for custom Perl modules safe from being overwritten?

ottdev

Well-Known Member
Oct 1, 2013
129
4
68
cPanel Access Level
Root Administrator
(post title should be "dir" not "dire" )
@INC contains the following:
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5

Which is the safest place to put in-house authored custom modules such that:
- generally recognized as being a folder which has been delegated on various systems to contain modules custom to that specific system
- no risk of being overwritten/removed by any future cPanel updates
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
458
cPanel Access Level
Root Administrator
Hi,

The @INC you posted comes from the Perl version provided by Red Hat/Centos/CloudLinux (typically /usr/bin/perl). Only operating system updates will mess with modules you place within those @INC locations. Generally, things in the /usr/local directory are safe from overwrites from updates.