I am trying to get this going where i have this build array and then I
have an array of hashes named after the items in the build. Depending
upon what is in the array, I want to read the arrays of hashes. I
wrote
this simple script, but does not work. Any solns
build = [ "log " ,
“top” ]
I am trying to get this going where i have this build array and then I
have an array of hashes named after the items in the build. Depending
upon what is in the array, I want to read the arrays of hashes. I
wrote
this simple script, but does not work. Any solns
build = [ "log " ,
“top” ]
So you want to iterate over the build array and then do something with
the local variable named by the items in that array. There’s not
really a nice way of doing that - I would reorganise your data (eg why
have two local variables log and top rather than a hash with keys log
and top ?