Skip Menu |

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

Report information
The Basics
Id: 59173
Status: rejected
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: parse should accept scalar ref
If passing in a large string of xml, it would be more efficient to pass it as a scalar ref.
On Wed Jul 07 17:16:30 2010, justincase wrote: Show quoted text
> If passing in a large string of xml, it would be more efficient to pass > it as a scalar ref.
parse is just a call to XML::Parser::Expat's parse, which only accepts a scalar, not a scalar ref. So I don't think that allowing passing a scalar ref will improve things that much, as parse would need to de-reference the string to pass it to the real parsing sub anyway. __ mirod