Acme-Shukugawa-Atom
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
return 1 if -w $path;
print << ".";
*** You are not allowed to write to the directory '$path';
the installation may fail due to insufficient permissions.
.
if (
eval '$>' and lc(`sudo -V`) =~ /version/ and _prompt(
qq(
==> Should we try to re-execute the autoinstall process with 'sudo'?),
((-t STDIN) ? 'y' : 'n')
) =~ /^[Yy]/
)
{
# try to bootstrap ourselves from sudo
print << ".";
*** Trying to re-execute the autoinstall process with 'sudo'...
.
my $missing = join( ',', @Missing );
my $config = join( ',',
UNIVERSAL::isa( $Config, 'HASH' ) ? %{$Config} : @{$Config} )
if $Config;
return
unless system( 'sudo', $^X, $0, "--config=$config",
"--installdeps=$missing" );
inc/Module/Install/Win32.pm view on Meta::CPAN
http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe
or
ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe
Please download the file manually, save it to a directory in %PATH% (e.g.
C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to
that directory, and run "Nmake15.exe" from there; that will create the
'nmake.exe' file needed by this module.
You may then resume the installation process described in README.
-------------------------------------------------------------------------------
END_MESSAGE
}
}
1;
inc/Test/Base/Filter.pm view on Meta::CPAN
CORE::eval(shift);
no warnings;
untie *STDOUT;
return $output;
}
sub exec_perl_stdout {
my $tmpfile = "/tmp/test-blocks-$$";
$self->_write_to($tmpfile, @_);
open my $execution, "$^X $tmpfile 2>&1 |"
or die "Couldn't open subprocess: $!\n";
local $/;
my $output = <$execution>;
close $execution;
unlink($tmpfile)
or die "Couldn't unlink $tmpfile: $!\n";
return $output;
}
sub flatten {
$self->assert_scalar(@_);
lib/Acme/Shukugawa/Atom.pm view on Meta::CPAN
my $self = shift;
my $string = decode_utf8(shift);
if (! ref $self) {
$self = $self->new({ custom_words => \@DEFAULT_WORDS, @_ });
}
# Create local RE_EXCEPTION
local $RE_EXCEPTION = $self->_create_exception_re;
$self->preprocess(\$string);
$self->runthrough(\$string);
$self->postprocess(\$string);
return $string;
}
sub preprocess
{
my ($self, $strref) = @_;
my $custom = $self->custom_words;
for(0..(scalar(@$custom) - 1)/2) {
my $pattern = $custom->[$_ * 2];
my $replace = $custom->[$_ * 2 + 1];
$$strref =~ s/$pattern/$replace/g;
}
}
lib/Acme/Shukugawa/Atom.pm view on Meta::CPAN
} elsif ($yomi) {
$ret .= $self->atomize($yomi) || $surface;
} else {
$ret .= $surface;
}
}
}
$$strref = $ret;
}
sub postprocess {}
# ã·ã¼ã¹ã¼ã«ã¼ã«
# 寿å¸âã·ã¼ã¹ã¼
# ã³ããæå¾ã ã£ããã²ã£ããè¿ããªã
sub apply_shisu_rule
{
my ($self, $yomi) = @_;
return $yomi if $yomi =~ s{^($RE_SYLLABLE)($RE_SYLLABLE)$}{
my ($a, $b) = ($1, $2);
$a =~ s/ã¼$//;
( run in 0.253 second using v1.01-cache-2.11-cpan-8d75d55dd25 )