but I don't think you tried it; on the line you annotate with # 456, you probably mean to say $x, but you put say $X. Tragically, Perl is case-sensitive when it comes to variables.my $x = 123; ( async { $x = 456; say $X; # 456 } )->join(); say $x; # 123
In reply to Re^5: threads::shared referencing confusion
by etj
in thread threads::shared referencing confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |