Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    threads->new(\&my_sub)->detach();
    
    sub my_sub {}
    
  2. or download this
    >perl script.pl
    
    >
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    threads->new(\&my_sub)->detach();
    threads->new(\&my_sub)->detach();
    sleep(2);
    
  4. or download this
    $ script.pl &               unix
    
  5. or download this
    >start /b "" script.pl      Windows
    
  6. or download this
    #!/usr/bin/perl
    
    ...
    my $thread2 = new threads(\&my_sub);
    
    $_->join() for $thread1, $thread2;