Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Class-Autouse CPAN distribution.

Report information
The Basics
Id: 11313
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Class-Autouse

Owner: adamk [...]
Requestors: bauhaus [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: superloader issue on use base on modules without a file
Download (untitled) / with headers
text/plain 1.8k
Hi, the following simple script fails: use Class::Autouse qw(:superloader); use Class::DBI; print 'hi'; ... the reason it fails is that Class/ defines a package without a file and then attempts to call use base on it: package Class::DBI::__::Base; require 5.00502; use Class::Trigger 0.07; use base qw(Class::Accessor Class::Data::Inheritable Ima::DBI); package Class::DBI; use strict; use base "Class::DBI::__::Base"; ... so you get the following error message only when Class::Autouse is loaded before Class::DBI - terry@Abulafia:~/public_html/$ perl ~/ Can't locate Class/DBI/__/ in @INC (@INC contains: /home/terry/perl/lib/\ i386-linux-thread-multi, /home/terry/perl/lib, /home/terry/perl/i386-linux-thre\ ad-multi, /home/terry/perl, /home/terry/perl/share/perl/5.8.4, /home/terry/perl\ /lib/perl/5.8.4, /home/terry/public_html/, /etc/perl, /usr/local/l\ ib/perl/5.8.4, /usr/local/share/perl/5.8.4, /usr/lib/perl5, /usr/share/perl5, /\ usr/lib/perl/5.8, /usr/share/perl/5.8, /usr/local/lib/site_perl, .) at /usr/sha\ re/perl5/Class/ line 15 Class::Trigger::import('Class::Trigger') called at /usr/share/perl5/Cla\ ss/ line 5 Class::DBI::__::Base::BEGIN() called at /usr/share/perl5/Class/Trigger.\ pm line 5 eval {...} called at /usr/share/perl5/Class/ line 5 require Class/ called at /home/terry/ line 3 main::BEGIN() called at /usr/share/perl5/Class/ line 5 eval {...} called at /usr/share/perl5/Class/ line 5 BEGIN failed--compilation aborted at /usr/share/perl5/Class/ line 5. Compilation failed in require at /home/terry/ line 3. BEGIN failed--compilation aborted at /home/terry/ line 3. terry@Abulafia:~/public_html/$

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to