Help for this page

Select Code to Download


  1. or download this
    use threads; 
    
    ...
    print "Thread returned @ReturnData"; 
    
    sub sub1 { return "Fifty-six", "foo", 2; }
    
  2. or download this
    use threads;
    use threads::shared;
    ...
    print "Thread populated @array\n"; 
    
    sub sub1 { @array = ("Fifty-six", "foo", 2) }