I would like to try out
Perl6::Pugs on a system where I can only install under my home directory. It seems that the standard "PREFIX=" will not work with the Makefile.PL. I found the following code in PugsConfig.pm:
sub add_path {
my ($name, $config) = @_;
my $path = $Config{$name} || '';
$path =~ s/([\/\\])[^\/\\]*(perl)[^\/\\]*([\/\\]?)/$1${2}6$3/i
or die <<".";
Can't generate the correct Perl6 equivalent for:
+
$path
$config->{pugspath} =
File::Spec->catfile($config->{bin}, "pugs$config->{exe_ext}");
+
($config->{file_sep}) =
($Config{sitelib} =~ /([\/\\])/)
or die "Can't determine file_sep";
+
return $config;
}
This seems to imply that perl6 can only be installed in the same general area as perl5. If so, why was that done? Is there any work-around? Thanks.
Update: I moved my .cpan/build/Perl6-Pugs-6.0.11 to a new directory (to avoid getting clobbered by later CPAN installs). It appears that I can run pugs examples from here, so I am set for now.