Ahh... that makes sense. How can the array eq one thing or another it is a list!
Still I won't know what the input is. And the input won't be chomped for output reasons.
So my first order of business is to get the array scalar(?) and find the 'q\n'?
There's more than one way to do it, just don't use my way.