EPFL-Sciper-List
view release on metacpan or search on metacpan
lib/EPFL/Sciper/List.pm view on Meta::CPAN
sub retrieveSciper {
my @listPersons = ();
my @alphabet = ( 'a' .. 'z' );
my $ua = p_createUserAgent();
foreach my $letter (@alphabet) {
my $response = p_getUrl( $ua, p_buildUrl($letter) );
if ( $response->is_success ) {
my $struct = from_json( $response->decoded_content );
push @listPersons, @{ $struct->{result} };
}
}
my %hash = ();
foreach my $per (@listPersons) {
$hash{ $per->{sciper} } = $per;
}
@listPersons = ();
( run in 0.293 second using v1.01-cache-2.11-cpan-26ccb49234f )