[Mageia-dev] [soft-commits] [4703] fix syntax
Thierry Vignaud
thierry.vignaud at gmail.com
Tue May 29 12:17:26 CEST 2012
On 27 May 2012 17:00, <root at mageia.org> wrote:
> sub list_cauldron_packages
> {
> my $ctx = SVN::Client->new();
> - my @l = keys $ctx->ls("$repo_url/cauldron", 'HEAD', 0);
> + my @l = keys %{{$ctx->ls("$repo_url/cauldron", 'HEAD', 0)}};
> \@l;
> }
AFAIC, first line was correct.
Since perl-5.14.0, keys works on hashes references as well as on hashes
More information about the Mageia-dev
mailing list