- or download this
use strict;
use threads;
...
package cfg;
%cfg::thash : shared = ();
}
- or download this
use strict;
use threads;
...
%cfg::thash = ();
share(%cfg::thash);
}
- or download this
use strict;
use threads;
...
%cfg::thash = ();
threads::shared::share(%cfg::thash);
}
- or download this
lock(%cfg::thash);
$v1="A";
$v2="1";
$cfg::thash{$v1}{$v2} ="b";