diff options
-rw-r--r-- | META.json | 3 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 5 insertions, 6 deletions
@@ -43,9 +43,8 @@ "runtime" : { "requires" : { "CPAN::DistnameInfo" : "0", - "CPANPLUS::Backend" : "0", "Function::Parameters" : "0", - "IO::Zlib" : "0", + "IPC::Run" : "0", "Log::Any" : "0", "Log::Any::Adapter" : "0", "Log::Log4perl" : "0", @@ -31,10 +31,10 @@ Return an arrayref of hashrefs with CPAN distribution information. See my $distribution_names = ['App::ArchLinux::PackagerTools', 'DBI']; my $packages = $app->get_updateable_packages($distribution_names); - print $packages[0]->{dist_name}; - print $packages[0]->{pkgname}; - print $packages[0]->{repo_version}; - print $packages[0]->{cpan_version}; + print $packages->[0]->{dist_name}; + print $packages->[0]->{pkgname}; + print $packages->[0]->{repo_version}; + print $packages->[0]->{cpan_version}; Accepts a list of package names and returns a list of packages that can be updated. The returned packages contain the name of the distribution, the name |