]> git.koha-community.org Git - koha.git/commit
Bug 10644: (follow-up) remove inadvertant dependence on Perl 5.14
authorGalen Charlton <gmc@esilibrary.com>
Fri, 9 Aug 2013 18:53:20 +0000 (18:53 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 16 Aug 2013 15:34:39 +0000 (12:34 -0300)
commit9504e00f7b497aa8e49567ca99cf73f7c32ad134
treec9a28fb14b684a94ac7f1bdb3628dbb35703c1f3
parentcfb48010ad23e50fc93d893963164a17d4208c7b
Bug 10644: (follow-up) remove inadvertant dependence on Perl 5.14

Perl 5.14 changed array and hash container functions (e.g., keys())
to accept hashrefs or arrayrefs.  However, this doesn't work in
Perl 5.10, so doing

  scalar(keys( function_returning_hashref() ) );

is a syntax error in that version.  This patch changes the affected
tests to explicitly difference the hashrefs returned by the various
functions.

To test:

Verify that t/db_dependent/ClassSource.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 8f933bc040e8e4198f5278253191a7a4233467ce)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/ClassSource.t