Help for this page

Select Code to Download


  1. or download this
    if( $threads ) {
        require threads::shared; threads::shared->import();
        share @foo; # No parens used
    }
    
  2. or download this
        use Exception::Spiffy 'catch';
        catch {
            ...
        };
    
  3. or download this
        require Exception::Spiffy; Exception::Spiffy->import('catch');
        &catch( sub {
            ...
        } );
    
  4. or download this
    if( $threads ) {
        require threads::shared; threads::shared->import();
        share( \@foo );
    }
    
  5. or download this
    Type of arg 1 to threads::shared::share must be one of [$@%] (not refe
    +rence constructor)
    
  6. or download this
    if( $threads ) {
        require threads::shared; threads::shared->import();
        &share( \@foo ); # The ampersand is important
    }