dave mitchell uaufmiabyncom tue oct 30 2007 074027pm 0700 olly betts wrote perldoc perlmod says like clone clone_skip called per package however called cloning starts context parent thread returns true value objects class cloned rather copied unblessed undef values tests copies unblessed arent undef heres simple example documentation ambiguous current behaviour perl designed references cloned child thread references undefined scalars rather blessed hashes whatever eg use threads sub clone_skip 1 x bless use datadumper print dumper x threadsnewsub print dumper x join gives var1 bless main var1 undef however looking code noticed bug flags new undef scalar arent zeroed theyre parent object change fixes tries improve documentation change 32213 davemdavempigeon 20071102 235927 perl 47045 clone_skip doesnt result undef copies clarify documentation clone_skip ensure undef value flags cleared affected files depotperlpodperlmodpod42 edit depotperlsvc1438 edit differences depotperlpodperlmodpod42 text 5816 5819 called cloning starts context parent thread returns true value objects class cloned rather copied unblessed undef values example parent two references single blessed hash child two references single undefined scalar value instead provides simple mechanism making module threadsafe add c top class c called per object course child thread needs depotperlsvc1438 text 100488 100487 dont clone objects whose class asked us svobjectsstr svflagssvstashsstr svphv_cloneable svflagsdstr svtypemask svobject_offdstr svflagsdstr 0 return dstr technology dominated two types people understand manage manage understand thu 07 aug 2008 133506 0000 perl 47045 clone_skip doesnt result undef copies