$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!
In reply to Re: String in array
by ikegami
in thread String in array
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |