Thread

Posted on Fri Jul 1 06:52:12 2005 by unduhtakuh
Twig.pm line 2466
Thanks for Nmap::Parser! I had a need and it fit it perfectly. With warnings turned on, I get an "uninitialized value" in Twig.pm line 2466 from this code:
#!/usr/bin/perl -w use strict; use Nmap::Parser; my $path = '/usr/bin/nmap'; my $args = '-sP'; my @ips = qw/192.168.100.104/; my $nmap = new Nmap::Parser; $nmap->parsescan ($path, $args, @ips); for my $host ($nmap->all_hosts()) { print $host->addr."\n"; }
Line 2466: last if( $elt == $last_elt); I realize this stems from another module, and I can remedy it by s/-w//, but I thought I'd bring it to, well, anybody's attention. Thanks again.
Direct Responses: 683 | Write a response
Posted on Sat Jul 2 08:21:46 2005 by apersaud in response to 680
Re: Twig.pm line 2466
What version of XML::Twig do you have installed. This problem should have been corrected in 3.16 and onward. If you install a newer version of XML::Twig and you are getting these problems, let me know and I will try to pin point them. Just give me more info. Thanks for the compliment. If you like the module very much, you can give it a rating. Also, check out the sourceforge.net page of the module at: http://npx.sf.net. A new website will be available this weekend that will be (easier to maintain for me without the use of blogging) and have various articles and guides.
Direct Responses: 722 | Write a response
Posted on Tue Jul 12 05:32:06 2005 by unduhtakuh in response to 683
Re: Twig.pm line 2466
I'm using XML::Twig 3.17. Dig the new site. Btw, here's the script where I'm using your module:

http://phx2600.com/forum/viewtopic.php?t=510

Thanks again.
Direct Responses: 723 | Write a response
Posted on Tue Jul 12 05:50:21 2005 by apersaud in response to 722
Re: Twig.pm line 2466
Would you like to add a brief (but longer) description of the script so I can post it on the website? Thanks, Anthony
Write a response