[Israel.pm] perl threads clarification

Gaal Yahas gaal at forum2.org
Thu Dec 17 09:14:34 PST 2009


This is class method syntax. The first argument to the function will
be the class name.

(The interchangeability of functions and methods in Perl can be useful
sometimes, but can create confusion in precisely cases like yours.
Happily this is fixed in Perl 6.)

On Thu, Dec 17, 2009 at 7:08 PM, Issac Goldstand <margol at beamartyr.net> wrote:
> Doh!!!  Why does it need to be an instance call, out of curiosity (if
> anyone knows offhand)?  Or is-> vs :: not representing an instance over
> a method call?
>
> Yuval Kogman wrote:
>> threads->list(threads::running)
>> _______________________________________________
>> Perl mailing list
>> Perl at perl.org.il
>> http://mail.perl.org.il/mailman/listinfo/perl
>>
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>



-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/


More information about the Perl mailing list