Help for this page

Select Code to Download


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