www/p5-WWW-Mechanize-TreeBuilder 1.20000p0 OpenBSD
combines WWW::Mechanize and HTML::TreeBuilder
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- www, perl5
Description
This module combines WWW::Mechanize and HTML::TreeBuilder. Why? Because I've seen too much code like the following:
like($mech->content, qr{<p>some text</p>}, "Found the right tag");
Which is just all flavours of wrong - its akin to processing XML with regexps. Instead, do it like the following:
ok($mech->look_down(_tag => 'p', sub { $_[0]->as_trimmed_text eq 'some text' })
The anon-sub there is a bit icky, but this means that anyone should happen to add attributes to the <p> tag (such as an id or a class) it will still work and find the right tag.
In the other systems
The newest version among them is 1.20000, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| OpenBSD | www/p5-WWW-Mechanize-TreeBuilder | 1.20000p0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| FreeBSD | www/p5-WWW-Mechanize-TreeBuilder | 1.20000 newest | none known | - | [email protected] | - |
| DragonFly | www/p5-WWW-Mechanize-TreeBuilder | 1.20000 newest | none known | - | [email protected] | - |
| HardenedBSD | www/p5-WWW-Mechanize-TreeBuilder | 1.20000 newest | no data | - | [email protected] | - |
| GhostBSD | www/p5-WWW-Mechanize-TreeBuilder | 1.20000 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg_add p5-WWW-Mechanize-TreeBuilder
From the ports tree:
cd /usr/ports/www/p5-WWW-Mechanize-TreeBuilder && make install
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.