Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the version of perl6/raku I am running?

Tags:

raku

rakudo

Trying the -v switch, I get the parrot svn revision:

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

but how do I know the rakudo version, either a vx.xx or {some-git-hash}?

Thanks,

like image 694
Cosimo Avatar asked Jun 10 '10 20:06

Cosimo


1 Answers

The special variable $*PERL may provide the hint

> $*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
...
like image 187
shalomb Avatar answered Sep 20 '22 23:09

shalomb