This queue is for tickets about the Win32-MMF CPAN distribution.

Report information
The Basics
Id:
9631
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ask1about [...] yahoo.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.09e
Fixed in:
(no value)



Subject: Tieing multi-level hashes or arrays can only see top level
When using tie with Win32-MMF Shareable on a Hash or Array. The child thread/process can't read anything farther then the top level of the hash/array. Example: %Hash = ( one => '1', two => { 'one' => '1', two => '2', }, ); will be read as %Hash = ( one => '1', two => {}, ); Same goes for multi-dimensional arrays. It seems it does not pick up refrences farther then the top level.
Also, i forgot to mention that error occures only when you modify the hash or array. $hash{one}="2"; #works fine $hash{two}{one}="1"; #Fails %hash=( two => { one => "1", }, ); #also works fine $hash{two}={one => "1",}; #works fine too This is the problem: $hash{two}{one}="1"; [guest - Tue Jan 11 19:06:31 2005]:
Show quoted text
> When using tie with Win32-MMF Shareable on a Hash or Array. The child > thread/process can't read anything farther then the top level of the > hash/array. > > Example: > > %Hash = ( > one => '1', > two => { 'one' => '1', two => '2', }, > ); > > will be read as > > %Hash = ( > one => '1', > two => {}, > ); > > Same goes for multi-dimensional arrays. > > It seems it does not pick up refrences farther then the top level.
The temp solution to this is seems to be similar to that of tieing a refrence to begin with. %hash2=%hash; $hash2{two}{one}="1"; # this %hash=%hash2; # or $hash{two}=$hash2{two};
Show quoted text
>.>..I should honostly thin kthings out and put them all into one
withotu 3 comments.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.