Help for this page

Select Code to Download


  1. or download this
    use threads;;
    { 
    ...
    async \&junk::method, $o, qw[ the quick brown fox ];;
    #outputs
    junk: junk=ARRAY(0x1adcdec) the quick brown fox
    
  2. or download this
    ... setup as above
    
    async( $obj->can("method"), $obj, qw[ the quick brown fox ] );;
    [Type of arg 1 to threads::async must be block or sub {} (not subrouti
    +ne entry) at ...
    
  3. or download this
    async sub{ $o->method( qw[ the quick brown fox ] ) };;
    junk: junk=ARRAY(0x1b7d5a4) the quick brown fox
    
    async{ $o->method( qw[ the quick brown fox ] ) };;
    junk: junk=ARRAY(0x1c1b4a4) the quick brown fox