Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Error: Invalid value for shared scalar when assigning a scalar

by kennethk (Monsignor)
on Apr 23, 2013 at 16:26 UTC ( #1030190=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Error: Invalid value for shared scalar when assigning a scalar
Select or Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030190]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-08-02 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls