Parsing a file descriptor using XML :: Twig

I see in the XML :: Twig documentation the parse($text) functions for parsing scalars contain xml text and parsefile($fileName) for reading and parsing XML files. I would like to parse the input stream (file descriptor or possibly STDIN). Still sneaking through the documentation and found nothing. How can I do it?

+4
source share
1 answer

XML::Twig is a subclass of XML::Parser , so you can pass parse() public IO::Handle .

+8
source

Source: https://habr.com/ru/post/1392122/


All Articles