Help for this page

Select Code to Download


  1. or download this
    Undefined subroutine &threads::shared::_id called at math1.pl line 5.
    
  2. or download this
    use threads; #added
    use threads::shared;
    ...
      if (threads::shared::_id($var)) {#pass the var not the ref
          print("'\$var' is shared\n");
      }