in reply to How to read compressed (gz) file in xml::twig
Hi CSharma,
For your first question, see IO::Uncompress::Gunzip, the following works for me:
use IO::Uncompress::Gunzip (); use XML::Twig; my $z = IO::Uncompress::Gunzip->new('in.xml.gz') or die "gunzip failed: $IO::Uncompress::Gunzip::GunzipError\n"; my $twig = XML::Twig->new; $twig->parse($z); $z->close;
As for your second question, as far as I can tell you haven't provided enough information to reproduce the problem, see SSCCE. Also, I'm not sure how this question relates to the first - if this is a separate question, you should probably put it in a separate post.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read compressed (gz) file in xml::twig
by CSharma (Sexton) on Feb 20, 2017 at 12:04 UTC | |
by marto (Cardinal) on Feb 20, 2017 at 12:11 UTC | |
by haukex (Archbishop) on Feb 20, 2017 at 16:07 UTC | |
by CSharma (Sexton) on Feb 22, 2017 at 03:08 UTC |