Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Perl script module

$
0
0
I took the copy of the production module to the home directory and executing the module.

one of the test prdmsk.pm module is present in the home directory ctskk. would like to know whether the below syntax is correct.

Code:


use strict;
use lib "/home/ssprod/ctskk";
use lib::Prdmsk;

while executing I am getting the error as below any idea plz

Code:

Can't locate lib/Prdmsk.pm in @INC (@INC contains: /home/ssprod/ctskk /opt/acc_perl/lib/site_perl/5.14.2/PA-RISC2.0 /opt/acc_perl/lib/site_perl/5.14.2 /opt/acc_perl/lib/5.14.2/PA-RISC2.0 /opt/acc_perl/lib/5.14.2 .) at program.pl line 27
BEGIN failed--compilation aborted at program.pl line 2

---------- Post updated at 07:45 AM ---------- Previous update was at 07:37 AM ----------

In production code. the syntax is mentioned as below.. it picks it from the perl module
/opt/acc_perl/lib/5.14.2. Whereas when I placed the module in the home directory the module is not getting picked up.

Code:


use strict;
use ssprod::Prdmsk;

---------- Post updated at 09:04 AM ---------- Previous update was at 07:45 AM ----------

the issue is fixed now.

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images