- or download this
use threads;
use threads::shared;
...
$h{test} = $ar;
## No error this time.
- or download this
use threads;
use threads::shared;
...
my %h : shared;
my $ar : shared = [];
$h{test} = $ar;
- or download this
use threads;
use threads::shared;
my %h : shared;
my $ar = [];
$h{test} = share( $ar );
- or download this
use threads;
use threads::shared;
my %h : shared;
$h{test} = share( [] );
Type of arg 1 to threads::shared::share must be one of [$@%] (not sing
+le ref constructor) at (eval 6) line 1, near "] )"