i get an error:use threads; use threads::shared; use Clone; use Data::Dumper; my $x = shared_clone({ a => 'Foo', b => 'Bar' }); my $z = Clone::clone($x); print Dumper($z);
Moreover, print keys %$z; prints "ab" but print values %$z; gives previous error. Can anyone explain to me what can i do to use $z as a normal hashref and what causes this error?Can't locate object method "FETCH" via package "threads::shared::tie" +at C:/Perl/site/lib/Data/Dumper.pm line 190.
In reply to Cloning shared hashref by menth0l
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |