repaired perl syntax on map call
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 15:28:17 +0000 (15:28 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 15:28:17 +0000 (15:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14047 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index e18673f..3d84401 100644 (file)
@@ -1064,7 +1064,7 @@ sub new_hold_copy_targeter {
                                )->gather(1);
 
                                if (defined($max_loops)) {
-                                       my %circ_lib_map =  map ( $_->circ_lib => 1 ) @$all_copies;
+                                       my %circ_lib_map =  map { $_->circ_lib => 1 } @$all_copies;
                                        my $circ_lib_list = [keys %circ_lib_map];
        
                                        my $cstore = OpenSRF::AppSession->connect('open-ils.cstore');
@@ -1093,7 +1093,7 @@ sub new_hold_copy_targeter {
        
                                        my @keepers;
                                        if ($exclude_list && @$exclude_list) {
-                                               $exclude_list = [map ($_->{circ_lib}) @$exclude_list];
+                                               $exclude_list = [map {$_->{circ_lib}} @$exclude_list];
                                                # check to see if we've used up every library in the potentials list
                                                for my $l ( @$circ_lib_list ) {
                                                        my $keep = 1;