]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 10 Jan 2015 19:13:37 +0000 (16:13 -0300)
commitbdf8627e640827c303259da73e6a1e82f6836fcb
treef1946cc97138acab411ce65ab2f44703b325a714
parentfbfc109777338fce515ae544e9537d5a9a8a7947
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: Tomas Cohen Arazi <tomascohen@gmail.com>
tools/viewlog.pl