Is it possible to store evaluated / compiled code in a variable?
I'm using the phpBB built-in function assign_var_from_handle as follows:
$thisPoll = $template->assign_var_from_handle_new('TOPIC_POLL', 'pollbox');
Still in the loop I then do the following...
I tried everything suggested above and the solution finally came about by using:
use lib "/tmp/weburl/LIB";
use RT::SelectAffiliate;
Thanks for the help!
I've added my module SelectAffiliate.pm to the /usr/local/rt2/lib/RT directory (which is where all the other custom perl modules are). Do I have to do something more than this for Perl to know it is available to use?
Here is the entire script where the error is being thrown (but only in...
I wrote a perl module and got it working in a test environment a few months ago. Now I'm trying to get it working in production and I'm getting the following error:
error: Can't locate object method "new" via package "RT::SelectAffiliate" (perhaps you forgot to load "RT::SelectAffiliate"?) at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.