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