jerry hedden drbcqzxlcpanorg attached patches fix bug thank dean arnold suggestion use pl_ function pointer jerry hedden wrote im trying come fix bug related storing shared objects inside shared structures bug proxy objects shared object destroyed objects destroy routine called even thought object yet destroyed following elicits bug usrbinperl use strict use warnings use threads use threadsshared package jar jar shared sub new blessthreadssharedshare shift sub store self cookie _ pushjar cookie printjar cookie storedn return jar1 bug cookie destroyed package cookie destruction_count 0 sub new blessthreadssharedshare shift sub destroy destruction_count printcookie destruction count destruction_countn package main main jar jarnew cookie cookienew printmain storing cookien jarstorecookie printnmain cookie destroyed yetn printnmain exiting scopen printndonen outputs main storing cookie jar cookie stored cookie destruction count 1 main cookie destroyed yet main exiting scope cookie destruction count 2 done shows destroy called twice first time destruction proxy object attempting fix bug first providing call threadsshared extthreadssharedsharedxs report whether shared object destroyed ref shared refcnt greater one destroyed thu 07 aug 2008 111328 0500 patch bug fix storing shared objects shared structures