Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 9631
Status: new
Priority: 0/
Queue: Win32-MMF

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

Bug Information
Severity: (no value)
Broken in: 0.09e
Fixed in: (no value)



Subject: Tieing multi-level hashes or arrays can only see top level
Download (untitled) / with headers
text/plain 391b
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.
Download (untitled) / with headers
text/plain 786b
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.
Download (untitled) / with headers
text/plain 272b
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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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