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.
|
|---|