Bug 13522: Make it explicit that scalar containd a hash ref
commit23e2ded850175bedb89da06159a465f8928ce588
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 6 Jan 2015 11:40:46 +0000 (6 11:40 +0000)
committerChris Cormack <chris@bigballofwax.co.nz>
Wed, 14 Jan 2015 23:43:13 +0000 (15 12:43 +1300)
treec2224d8fe89596b773f2c123aa59afadb706f20a
parent7ef6316d953c6ab8b7de672bed0ccefdaec93361
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>
(cherry picked from commit bdf8627e640827c303259da73e6a1e82f6836fcb)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
tools/viewlog.pl