{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["www","perl5"],"comment":"combines WWW::Mechanize and HTML::TreeBuilder","compare":"/compare/p5-www-mechanize-treebuilder/index.json","dependentCount":null,"description":"This module combines WWW::Mechanize and HTML::TreeBuilder. Why? Because\nI've seen too much code like the following:\n\n like($mech-\u003econtent, qr{\u003cp\u003esome text\u003c/p\u003e}, \"Found the right tag\");\n\nWhich is just all flavours of wrong - its akin to processing XML with\nregexps.  Instead, do it like the following:\n\n ok($mech-\u003elook_down(_tag =\u003e 'p', sub { $_[0]-\u003eas_trimmed_text eq 'some\n text' })\n\nThe anon-sub there is a bit icky, but this means that anyone should\nhappen to add attributes to the \u003cp\u003e tag (such as an id or a class) it\nwill still work and find the right tag.","flavors":[],"html":"https://daemonports.org/openbsd/www/p5-WWW-Mechanize-TreeBuilder/","kind":"port","lastUpdate":null,"license":null,"maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","name":"p5-WWW-Mechanize-TreeBuilder","newest":true,"newestVersion":"1.20000","noVulnData":true,"origin":"www/p5-WWW-Mechanize-TreeBuilder","otherSystems":[{"maintainer":"alex.deiter@gmail.com","newest":true,"origin":"www/p5-WWW-Mechanize-TreeBuilder","path":"/www/p5-WWW-Mechanize-TreeBuilder/","system":"FreeBSD","version":"1.20000"},{"maintainer":"alex.deiter@gmail.com","newest":true,"origin":"www/p5-WWW-Mechanize-TreeBuilder","path":"/dragonfly/www/p5-WWW-Mechanize-TreeBuilder/","system":"DragonFly","version":"1.20000"},{"maintainer":"alex.deiter@gmail.com","newest":true,"noVulnData":true,"origin":"www/p5-WWW-Mechanize-TreeBuilder","path":"","system":"HardenedBSD","version":"1.20000"},{"maintainer":"alex.deiter@gmail.com","newest":true,"noVulnData":true,"origin":"www/p5-WWW-Mechanize-TreeBuilder","path":"","system":"GhostBSD","version":"1.20000"}],"packages":null,"pkgName":"p5-WWW-Mechanize-TreeBuilder-1.20000p0","related":null,"repository":"OpenBSD ports","requiredBy":["www/p5-Drupal-Admin"],"requiredByCount":1,"runDepends":["devel/p5-MooseX-Role-Parameterized","www/p5-HTML-Tree","www/p5-WWW-Mechanize"],"status":null,"system":"openbsd","systemLabel":"OpenBSD","version":"1.20000p0","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/WWW-Mechanize-TreeBuilder"}
