I start with perl now. I don't no how to do.
(I comms from Powershell, sorry)
Please,
----------
script:
#!C:/Dwimperl/perl/bin/perl.exe use strict; use warnings; use LWP::UserAgent; my $url = 'http://athome.myminicity.com/xml'; my $ua = LWP::UserAgent->new(); my $response = $ua->get($url); if($response->is_success) { # print $response->decoded_content; my $city = XML::Simple->new; print $city->{city}->{population} print population ? print bases =>tra ? } else { die $response->status_line; }
The module xml::simple is not load
How format numbers (1246633 => 1 246 633)
Thanks
@r
In reply to XML Simple by Arenas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |