Oh boy, new toys! pQuery (See also pQuery ). I'm not a big fan of jQuery, but pQuery should keep me busy this weekend 8^))
Re:Not a fan?
sigzero on 2008-03-01T20:31:17
I like it as well. There is a lot of functionality packed into its 14K.Re:Not a fan?
avik on 2008-03-03T21:24:14
I like what this module does (not familiar with jQuery, this is cool!..)
One question is why does it fail to compile because in contructors.t it (deliberately) says
use XXX;???
Pod is a bit missleading as well, when it talks about function 'each' it advises to use this code
pQuery("td", $dom)->each(sub {
my $i = shift;
print $i, " => ", pQuery($_)->text(), "\n";
});which does not work. Going back to each.t reveals code that does...
my $output = '';
pQuery($html)->find('li')->each(sub {
my $i = shift;
my $text = pQuery($_)->text();
$output.= ($i + 1) . ') ' . $text . "\n";
});(...sigh...) Maybe I am asking for too much, but as a (mindless) consumer I want to look at stuff that simply works...