[LEFT]PERL MODULE :
To debug my perl module code in test environment. I have taken production module to the test in the my home path directory and was trying to test it by changing the below path in my test code.
But still i am getting the error to debug it. can you please let me knw whether i am correct.
Production Code :
use strict;
use banking::field;
Test code :
use strict
use banking "/home/prod/banking/field";
use banking::field;
Error getting below
Use of qw(...) as parentheses is deprecated at banking/field.pm line 1493.
Can't locate object method "new" via package "banking::field" (perhaps you forgot to load "banking::field"?) at testout.pl line 42.
use strict;
use lib qw(/home/prod/banking/ /home/prod/banking/field);
use banking::field;
Still its not working.
Error :
Use of qw(...) as parentheses is deprecated at banking/field.pm line 1493.
Can't locate object method "new" via package "banking::field" (perhaps you forgot to load "banking::filed"?) at testoutputs.pl line 42.
---------- Post updated at 04:25 AM ---------- Previous update was at 02:42 AM ----------
any idea why it is not working when I placed the module in my home directories.
The problem is in order to test the code. I thought of taking the backup of module to my home path and debug the code. the production Module in present in the perl library function. I have taken the ctl folder /opt/acc_perl/lib/site_perl/5.14.2/ctl in the perl area to my home path /home/prod/ctl/prod.pm
Production code :
use ctl::Prod;
Can you let us know what need to be changed in the code to debug the module from my home path