Show
Ignore:
Timestamp:
07.07.2017 20:11:43 (3 years ago)
Author:
ak19
Message:

Adding in patches to cpan perl code as required to get the remote greenstone server to still work with perl v 5.22.1. Not tested these changes with out usual perl 5.18. I'm not getting a newer version of these modules from CPAN since I'm not sure whether there may be some compatibility issues of the newer versions with our existing code. So I'm making the smallest number of changes that will keep our code still working.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cpan/JSON/PP.pm

    r24921 r31781  
    14871487    $self->{incr_p} = 0; 
    14881488 
    1489     return $obj or ''; 
     1489    # To avoid syntax errors in newer versions of perl, 
     1490    # putting the return in brackets as explained at 
     1491    # https://rt.cpan.org/Public/Bug/Display.html?id=87302 
     1492    # "returns binds stronger than or, so the expressions after or are ignored. 
     1493    # See https://rt.perl.org/rt3/Public/Bug/Display.html?id=59802" 
     1494    return ($obj or ''); 
    14901495} 
    14911496