https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28519
Julian Maurice <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #12 from Julian Maurice <[email protected]> --- You can replace foreach my $code (@dir_codes){ my $path = $target_dirs->{ $code }; if ($path){ $unique_map{$path} = 1 unless $unique_map{$path}; } } my @paths = sort keys %unique_map; by my @paths = sort uniq map { $target_dirs->{$_} || () } @dir_codes; and if you don't like List::MoreUtils or non-core dependencies, List::Util also has a uniq subroutine. But that was only a suggestion. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
