]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 9 Aug 2013 18:53:20 +0000 (18:53 +0000)
commit8f933bc040e8e4198f5278253191a7a4233467ce
treeccb2e1b8f6712d151bf83b4f66b5ac2cd4f6a14a
parent2cbc47a871efc60ae663ecfedf59ec77dda718f4
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>
t/db_dependent/ClassSource.t