in reply to Re^3: Failed array attemp
in thread Failed array attemp

If you are going to be "using this scheme a lot", I'd recommend you upgrade, or re-review this post I wrote which is similar to your original code in your question but it actually works.

Admittedly, I didn't even think to use smartmatch, so kudos to tobyink for that.

Without smartmatch, I believe you have to do it in two steps.