File tree 3 files changed +22
-22
lines changed
search/reverse_dependencies
3 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 10
10
my $mech = WWW::Mechanize::GZip-> new;
11
11
12
12
$mech -> get(
13
- " https://fastapi.metacpan.org/v1/search/ reverse_dependencies/carton " );
13
+ " https://fastapi.metacpan.org/v1/reverse_dependencies/dist/Carton " );
14
14
15
15
my $results = decode_json( $mech -> content );
16
16
17
17
my @dists
18
- = map { $_ -> {_source } -> { distribution } } @{ $results -> {hits } -> { hits } };
18
+ = map { $_ -> {distribution } } @{ $results -> {data } };
19
19
p @dists ;
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/env perl
2
+
3
+ use strict;
4
+ use warnings;
5
+
6
+ use Data::Printer;
7
+ use JSON::MaybeXS qw( decode_json ) ;
8
+ use WWW::Mechanize::GZip ();
9
+
10
+ my $mech = WWW::Mechanize::GZip-> new;
11
+
12
+ $mech -> get(
13
+ " https://fastapi.metacpan.org/v1/reverse_dependencies/module/WWW::Mechanize"
14
+ );
15
+
16
+ my $results = decode_json( $mech -> content );
17
+
18
+ my @dists
19
+ = map { $_ -> {distribution } } @{ $results -> {data } };
20
+ p @dists ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments