I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-12-25 08:51:55-08 by selvaperumaal
How I can get last child of an element through Twig Handler
Hi, I have trying to get last child of an element using twig object by,
@last_tg=$t->get_xpath(tbody/row[last()]/entry);
its work well, but I need it in twig handler potion as
my $t = new XML::Twig ( twig_handlers => {'tbody/row[last()]/entry' => sub {$_->set_att('aid5:cellstyle'=>'TBL')} );
but it shows error like 'unrecognized expression in handler', is it possible using the 'last()' xpath function here? give me an idea for how I can get last child of an element through Twig Handler. Thanks in advance.
Direct Responses: 9600 | Write a response