Help for this page

Select Code to Download


  1. or download this
    use threads;
    use threads::shared;
    ...
    $hash{a} = \$svar   # okay - a reference to a shared variable
    $hash{a} = \$var    # This will die
    delete $hash{a}     # okay - all threads will see !exists($hash{a})
    
  2. or download this
    use strict;
    use warnings;
    ...
    </Update>
    $thr1->join();
    print $foo->{args}[0];