in reply to Newbie Array Question

First: When you access a value from a hash, use $, { and }. (that would be $myarray{'id'}. According to the funny character % and to the way you try to read a value from it (by named key, not by index number) you are using a hash.
However, according to the name of the variable, you're trying to use an array.
So, second: an array is prepended with a @, and if you try to fetch one single value from it, you use $. Furthermore, you should access the value by their index number, for arrays do not have named keys like hashes do. So that would be $myarray[0] for example.

So, before we (I?) can answer your question in a helpfull manner, please convince yourself of what you want to do. And I know it is rude to say, but I'd suggest to read something of a manual or a book or anything else to teach you those basics.




"2b"||!"2b";$$_="the question"
Besides that, my code is untested unless stated otherwise.
One more: please review the article about regular expressions (do's and don'ts) I'm working on.