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;
In reply to Retrieve specific xml content from given url by conandor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |