[Moscow.pm] Perl? 5.10 -- 5.16

Nikolay Mishin mi ya.ru
14 04:57:58 PDT 2012


, !!..
   

14.09.2012, 15:48, "alpha6" <denis.fedoseev  gmail.com>:
> ;  }   ?
>
>  ,
>  
>
> On 14 Sep 2012, at 3:46 PM, Nikolay Mishin <mi  ya.ru> wrote:
>
>> type 01_fact.pl
>> use 5.16.0;
>> # use feature 'say';
>> my $fact;
>> $fact=sub{
>> my ($x)=@_;#
>> return $x if $x==1;
>> return $x*$fact->($x-1);
>> }
>> say $fact->(5);
>>
>> perl -c 01_fact.pl
>> syntax error at 01_fact.pl line 9, near "say"
>> 01_fact.pl had compilation errors.
>>
>> perl -v
>>
>> This is perl 5, version 16, subversion 0 (v5.16.0) built for MSWin32-x64-multi-thread
>>
>>     ?
>> 14.09.2012, 15:22, " " <sharifulin  gmail.com>:
>>>  ,    say  ? :-)
>>>
>>> 2012/9/14 Nikolay Mishin <mi  ya.ru>
>>>> my $fact;$fact=sub{
>>>> my ($x)=@_;#
>>>> return $x if $x==1;
>>>> return $x*$fact->($x-1);
>>>> }
>>> --
>>>  ,
>>>  .
>>> ,
>>> --
>>> Moscow.pm mailing list
>>> moscow-pm  pm.org | http://moscow.pm.org
>> --
>> Nikolay Mishin
>> --
>> Moscow.pm mailing list
>> moscow-pm  pm.org | http://moscow.pm.org
>
> --
> Moscow.pm mailing list
> moscow-pm  pm.org | http://moscow.pm.org

--
Nikolay Mishin


Moscow-pm