in reply to Assign regexp output to array not working
Not so much what you are missing, as what is extra. What is $shift? Do you perhaps mean shift?