Help for this page

Select Code to Download


  1. or download this
    use threads;
    use threads::shared;
    ...
    my $q = Thread::Queue->new();    # A new empty queue
    
    $q->enqueue(\%hash);
    
  2. or download this
    my $hugedata = <BIGSLURP>;
    
    ...
    
    # $hugedata = undef; # <<< if done with it, then unload it, otherwise 
    +...
    threads->create(...); # ... hugedata is duplicated, %hash is not.