Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Can't locate auto/HTML/TreeBuilder/disembowel.al

by ikegami (Patriarch)
on Sep 14, 2004 at 14:16 UTC ( [id://390847]=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://390847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-18 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found