tall_man has asked for the wisdom of the Perl Monks concerning the following question:
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.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; }
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.
|
|---|