in reply to String in array

$element contains "and/people", and it's nonsense to use that as an array index.

5 seconds of debugging would have confirmed that if you weren't sure what the message meant :( If Perl tells your variables contain something funky, make sure your variables contains what you think they contain!