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 <mar...@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@perl.org.il
>> http://mail.perl.org.il/mailman/listinfo/perl
>>
>
> _______________________________________________
> Perl mailing list
> Perl@perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
>



-- 
Gaal Yahas <g...@forum2.org>
http://gaal.livejournal.com/
_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to