in reply to Re^4: share array of hashes between main program and thread
in thread share array of hashes between main program and thread

are the two command equivalent?

Not even slightly, as the latter is illegal syntax:

perl -mstrict -cwle"$Array[ $i ]{ newKey }->'newValue'" String found where operator expected at -e line 1, near "->'newValue'" (Missing operator before 'newValue'?) syntax error at -e line 1, near "->'newValue'" -e had compilation errors.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW It is as I've been saying!(Audio until 20090817)