menth0l has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cloning shared hashref
by BrowserUk (Patriarch) on Jan 20, 2011 at 14:33 UTC | |
by menth0l (Monk) on Jan 20, 2011 at 14:44 UTC | |
by BrowserUk (Patriarch) on Jan 20, 2011 at 15:48 UTC | |
by menth0l (Monk) on Jan 21, 2011 at 08:12 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2011 at 08:39 UTC | |
by jwba (Novice) on Mar 16, 2011 at 21:43 UTC | |
by BrowserUk (Patriarch) on Mar 16, 2011 at 23:04 UTC | |
| |
Re: Cloning shared hashref
by locked_user sundialsvc4 (Abbot) on Jan 20, 2011 at 15:14 UTC | |
by BrowserUk (Patriarch) on Jan 20, 2011 at 18:31 UTC |