conandor has asked for the wisdom of the Perl Monks concerning the following question:
any idea to solve it? The codeAttempt to bless into a reference at /usr/share/perl5/XML/Twig.pm line + 392.
use XML::Twig; use LWP::Simple; my $url = 'http://mywebserver/status.xml'; my $twig = new XML::Twig(TwigRoots => { 'smsc/received' => sub {$author = $_[1]->text; }}); $twig->nparse( $url ); $twig->print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Retrieve specific xml content from given url
by jakobi (Pilgrim) on Oct 06, 2009 at 09:47 UTC | |
|
Re: Retrieve specific xml content from given url
by Anonymous Monk on Oct 06, 2009 at 10:46 UTC | |
by Anonymous Monk on Oct 06, 2009 at 10:56 UTC |