]> git.koha-community.org Git - koha.git/commit
Bug 13522: Make it explicit that scalar containd a hash ref
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 6 Jan 2015 11:40:46 +0000 (11:40 +0000)
committerMason James <mtj@kohaaloha.com>
Fri, 23 Jan 2015 07:07:25 +0000 (20:07 +1300)
commit558e7aaff2ea60ae54ee94c2760826d2b1001c76
tree7e60162bc72cccd25d3ce820972af4805868fd57
parent82c6fd5642aee1fc2d3fae1d9835d680b4b79c2a
Bug 13522: Make it explicit that scalar containd a hash ref

Prior to perl 5.12 keys can only operate on a hash. So although
$data[0] ( thats an abysmal variable name! ) will contain a hash ref
the perl compiler cannot deduce that from the context and gives
a syntax error. Add the hash sigil to make the context explicit and
the compiler can generate the correct code.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
tools/viewlog.pl