I have a read the output of a function into a variable.
The data looks like this
---
data:
pkg:
-
NAME: 'bob'
FEATURE: Big
-
NAME: 'sue'
FEATURE: Tall
-
NAME: 'jim'
FEATURE: Slim
I see examples of iterating over an array. Those examples always create the array by hand.
Is there a way to transform the hash into an array? How do I do that? Or can I deal with it in this form?
I'd like to echo the FEATURE of each pkg.