in reply to Referencing an array in a complex hashed data structure

I think you should probably change $WA{$key}{stgs} =(); to $WA{$key}{stags} =[];, i.e. setting stags to a array_ref and using the same key as your initialization (stags in place of stgs).

As well, in place of unshift @{WA{$key}{stags}} you should have unshift @{$WA{$key}{stags}}, repeating that change in the following lines.

Replies are listed 'Best First'.
Re^2: Referencing an array in a complex hashed data structure
by Wiggins (Hermit) on Dec 08, 2008 at 20:04 UTC
    Thanks;
    I gave that a try and it produced a run-time message of:
    Invalid value for shared scalar at ThWgtAvg1.pl line 73, <IPT> line 1.

    but "= &share([]);" did work.
    I had a problem with that 2 years ago.. I was told it was a prototyping thing..