Help for this page

Select Code to Download


  1. or download this
    sub initThreads{
        my @initThreads;
    ...
    }
    # use the initThreads subroutine to create an array of threads.
    my @threads = initThreads();
    
  2. or download this
     $hash1{$affix}{$postfix} = threads::shared::shared_clone([$affix1]); 
    +This is where the problem is. How can I assign an array to a hash of 
    +hash
    
  3. or download this
    $hash1{ $affix } { $postfix } = ...;
    #................^^^^^^^^^^^^
    
  4. or download this
    $hash1{ $affix } = &share( {} ); ## Add an empty shared hash
    
    ## THEN you can do
    $hash1{ $affix }{ $postfix } = ....
    
  5. or download this
    ..................... threads::shared::shared_clone( [ $affix1 ] );