Re: Version of a Module

2017-06-27 Thread Lloyd Fournier
Hi Martin,

AFAIK you can only do this with hacks atm. It's different if the module is
installed or if you are in the source directory doing pelr6 -Ilib.

I do this in my own module here:
https://github.com/spitsh/spitsh/blob/master/lib/Spit/Util.pm6#L61

LL


On Wed, Jun 28, 2017 at 7:14 AM Martin Barth  wrote:

> Hello everyone,
>
> I wanted to repeat the question that I asked today on #perl6.
> I am looking for a way to retrieve the version of a Perl6-Module from
> within the module itself.
>
>  there is often a our $VERSION in perl5 modules. is this still
> idiomatic/a good way to go in perl6
>  i think the version is meant to be part of the meta info and
> such?
>  but that means the module itself does not know about its
> version, just e.g. zef does?
>  i'm convinced there ought to be a way to get the full meta
> info from whatever installation your script was grabbed from
>  but i don't know what or how
>


Version of a Module

2017-06-27 Thread Martin Barth

Hello everyone,

I wanted to repeat the question that I asked today on #perl6.
I am looking for a way to retrieve the version of a Perl6-Module from 
within the module itself.


 there is often a our $VERSION in perl5 modules. is this still 
idiomatic/a good way to go in perl6
 i think the version is meant to be part of the meta info and 
such?
 but that means the module itself does not know about its 
version, just e.g. zef does?
 i'm convinced there ought to be a way to get the full meta 
info from whatever installation your script was grabbed from

 but i don't know what or how