Thank You....yes,it helped.
Looking for a little variation now, if I need to output only the keys dev,prod,qa,manage and not the entire line? can a little variation here help?
or even more,if I am using variables instead of hardcoding, say if (/ $first/../ $last/), how to get only these strings, print and store them into an array(?) which can be traversed later.