The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl
sub demo {
    $a = $_[0];
    $b = 3;
    $c = 2 * $a + 7 * $b;
    @d = ($a, $b, $c + $b);
    return @d;
}
use threads;
my @threads = map { threads->create( \&demo, $_ ) } 5, -1;
$_->join for @threads;
exit 0;