如何知道我正在运行的perl6 / raku的版本?

问题描述 投票:5回答:3

尝试使用-v开关,我得到了鹦鹉的SVN版本:

$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 45822.

但是我怎么知道rakudo版本,是vx.xx还是{some-git-hash}

谢谢,

perl6 raku rakudo
3个回答
5
投票

当前您不知道:(

RT中有一个补丁需要等待审查:http://rt.perl.org/rt3/Ticket/Display.html?id=73148,但到目前为止尚未应用。

更新:有了足够新的Rakudo,您将获得:

$ perl6 -v

This is Rakudo Perl 6, version 2010.06-212-g1086ff8

Copyright 2008-2010, The Perl Foundation

“版本”之后的内容是git describe输出。


3
投票

perl6 -v现在可以使用。它提供了最近的每月发布,此后的提交次数以及git hash。


2
投票

特殊变量$*PERL可能会提供提示

> $*PERL.compiler
rakudo (2018.04.1)

> $*PERL.compiler.^attributes                                                                                                                                                                                     
(Str $!id Str $!release Str $!build-date Str $!codename Str $!name Str $!auth Version $!version Blob $!signature Str $!desc)

> $*PERL.compiler.^methods'                                                                                                                                                                                            
(BUILD build-date verbose-config Str gist id release codename name auth version signature desc BUILDALL) 

> $*PERL.compiler.name                                                                                                                                                                                       
rakudo

> $*PERL.compiler.version                                                                                                                                                                                       
v2018.04.1 

> $*PERL.compiler.auth                         
The Perl Foundation  

> $*PERL.compiler.build-date  # This being the date it was built on my machine                                                                                                                                                                                    
2018-05-18T21:59:11Z 

> $*PERL.compiler.verbose-config
...
© www.soinside.com 2019 - 2024. All rights reserved.