
ls, unshift gives me the same result ... No luck ... Stil lthe same error message. (the code with the warn statements does not give me any output ...) Eddie On 29-jun-2007, at 15:30, Gerhard Weber wrote:
Hi,
You can try extending @INC. add the line: unshift @INC, "/{insertFullPathHere}/Kernel/cpan-lib/Net/DNS/"; to index.pl, this way you will search that directory first while using index.pl. Would that do what you need? Hope this helps. Too bad, the original error "Modification of a read-only value attempted at /usr/lib/perl5/ site_perl/5.8.8/i686-linux/Net/DNS/Question.pm line 47." still points to the use of the system-wide module ....
I think unshift'ing is the right way, but you have to pass the "basic" path for your module. Something like this in index.pl:
unshift @INC, "$Bin/../../Kernel/cpan-lib"); # without "Net/DNS/" push (@INC, "$Bin/../.."); # no more need to push $Bin/../../Kernel/cpan-lib
and then directly after that log the versions:
use Net::DNS::Question; warn "Net::DNS::Question: $Net::DNS::Question::VERSION\n"; warn "Net::DNS::Resolver::Base: $Net::DNS::Resolver::Base::VERSION\n";
that should give you 610 versions from cpan.
Another thing just crossed my mind: since I'm working on a non-production system (just testing), I don't know for sure if these versions are working. Maybe someone else can test for her/his versions? perl -MNet::DNS::Question -e 'print "v=$Net::DNS::Question::VERSION\n";' and perl -MNet::DNS::Question -e 'print "v=$Net::DNS::Resolver::Base::VERSION\n";' prints the version on a shell
Greetings, Gerhard
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system?