I tried to make it close to the code in your original post.
use threads; use strict; use warnings; threads->create(\&foo); threads->create(\&bar); while (1) { sleep(60); } sub foo { while(1) { print "foo\n"; } } sub bar { while(1) { print "bar\n"; } }
In reply to Re: multiple infinitive loops
by pg
in thread multiple infinitive loops
by ozkaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |