]> 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, 16 Jan 2015 23:36:01 +0000 (12:36 +1300)
commit1b48202e28b5000e1a9904cef82bc436b3628c94
treebf1f52807c71df0ee568b8f66fcba1d7dc93f7c7
parent10ee2cd2f1d5e50a566542638acfa3fc5aaca22a
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