The method threads->new() is simply an alias for threads->create() so feel free to change that.#!/usr/bin/perl use strict; use warnings; use threads; my $t = threads->create(sub { print("Hello! I am a thread\n"); })->joi +n();
In reply to Re: Thread::new causes Undefined subroutine &threads::new
by marto
in thread Thread::new causes Undefined subroutine &threads::new
by no_germs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |