Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 6803
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: mark [...] markthomas.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.91
  • 0.92
  • 0.93
  • 0.94
  • 0.96
  • 0.97
  • 0.99
  • 1.00
  • 1.30
  • 1.31
  • 1.40
  • 1.49
  • 1.50
  • 1.51
  • 1.52
  • 1.53
  • 1.54_0
  • 1.54_1
  • 1.54_2
  • 1.54_3
  • 1.54_4
  • 1.54
  • 1.55
  • 1.56
  • 1.57
  • 1.58
  • 1.58_1
Fixed in: (no value)



Subject: Make findvalue() return a list in list context
Download (untitled) / with headers
text/plain 537b
A common need is a findvalue() that returns a list in list context, instead of a single concatenated string. For example, $string = $doc->findvalue('//cell'); #as currently implemented @cells = $doc->findvalue('//cell'); #return a list of cell values In fact, this is the way most people assumes it works, judging by the amount of times this gets asked on various lists. If for some reason, you do not want findvalue() to check the context, an alternate solution would be to add a convenience method findvalues() which returns a list.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.