I would implement threads in the following form
$thread_counter = 0;
$global = "lock";
$thread = new thread( \&thread_sub );
$thread->start();
thread_sub {
lock( $global ) {
print "i'm thread ", ++$thread_counter, "\n";
}
}
It's a mixture of ithreads and the C# t
>> Thanks for the reply - can you please what is the problem with having
it in the beginning of the line?
>
> Short answer: the compiler has no way of knowing whether the
> programmer wants an embedded comment or a line comment; so instead of
guessing, it requires the programmer to disambiguate.
>
Hello list,
i don't know the actually state in the discussion about multiline
comments, but i would propose an idea.. a combination of POD's = and the
traditional route char...
=#
this is a multi
line comment
#=
=# comment #= this is not commented
What you think about it?
regards
Christian