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; }