in reply to Can't locate auto/HTML/TreeBuilder/disembowel.al

Well that's odd. HTML::TreeBuilder from HTML-Tree-3.18 and it base classes are pure perl modules which don't use dynaloader or even AUTOLOAD. So why would perl be looking for a .al? disembowel is defined as sub disembowel { $_[0]->guts(1) } in TreeBuilder.pm

Replies are listed 'Best First'.
Re^2: Can't locate auto/HTML/TreeBuilder/disembowel.al
by pingo (Hermit) on Sep 14, 2004 at 14:30 UTC
    My version of TreeBuilder is 3.13, but it seems it is much the same as 3.18 (the sub is the same, at least).
      perl - <<'__EOP__' use HTML::TreeBuilder; print($HTML::TreeBuilder::VERSION, "\n"); print($INC{'HTML/TreeBuilder.pm'}, "\n"); my $tree = HTML::TreeBuilder->new; print($tree, "\n"); $tree->parse_file('file.html'); print($tree, "\n"); print('new_from_content: ', $::{'HTML::'}{'TreeBuilder::'}{'new_from_content'}?'yes':'no', "\n"); print('stunt: ', $::{'HTML::'}{'TreeBuilder::'}{'stunt' }?'yes':'no', "\n"); print('disembowel: ', $::{'HTML::'}{'TreeBuilder::'}{'disembowel' }?'yes':'no', "\n"); __EOP__

      HTML-Tree-3.11 looks like:

      3.11 r:/Utils/perl/site/lib/HTML/TreeBuilder.pm HTML::TreeBuilder=HASH(0x1abf008) HTML::TreeBuilder=HASH(0x1abf008) new_from_content: yes stunt: yes disembowel: no

      Disembowel doesn't exist in this version.

      HTML-Tree-3.18 should look like:

      3.13 r:/Utils/perl/site/lib/HTML/TreeBuilder.pm HTML::TreeBuilder=HASH(0x1abf008) HTML::TreeBuilder=HASH(0x1abf008) new_from_content: yes stunt: yes disembowel: yes
        Thanks, apparently the version of TreeBuilder installed on our backend cgi servers is 3.11... I guess I should have thought of that...