pQuery: jQuery for Perl

brian_d_foy on 2008-02-29T05:31:00

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^))


Not a fan?

spacebat on 2008-03-01T09:04:26

Not trolling mind you, but about the lack of jQuery fandom - what's not to like?

I've settled on it for being relatively lightweight, the API is concise and it plays nice with other libraries (unlike prototype). I'd like to know what others find lacking in it, or compelling cases for other libraries.

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

Nice one

bossprym on 2008-07-17T22:38:50

Yes it look nice to me.

I like what this module does.

Good one

bossprym on 2008-07-17T22:40:32

http://pisses.info/ http://ordines.info/ http://micellas.info/ http://hottering.info/ http://gettings.info/ http://flustery.info/