in reply to Getting pair of values from an array

What version of Perl are you using? With 5.6.0 I get the error: Can't coerce array into hash which is certainly more informative...