I want to do something like this:
die \"Fatal error: application version $MY-APPLICATION-VERSION\"
Since a Perl6 module cannot assume the r
As of rakudo v2019.03
modules may access the Distribution object used to load it via $?DISTRIBUTION. This allows the following:
unit module My::Module;
BEGIN my $VERSION = $?DISTRIBUTION.meta<version>;
use My::SubModule:ver($VERSION); # ensure we only ever use the version included in this distribution
die "Fatal error: application version $VERSION"