in reply to Error: Invalid value for shared scalar when assigning a scalar

I expect that the problem is not $wave_tcl_file, but rather is $all_shary_for_subs. I assume you are using threads::shared and $all_shary_for_subs is declared with :shared. As the docs say,
Shared variables can only store scalars, refs of shared variables, or refs of shared data

Without seeing more information around your block, I would guess you are trying to store an anonymous hash in your shared variable.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: Error: Invalid value for shared scalar when assigning a scalar
by ISAI student (Scribe) on Apr 24, 2013 at 09:25 UTC
    Thanks. There was a typo in the code. The toplevel hash was not shared.