—package
Cyrillic;
use
strict;
######################################################################
#
# Cyrillic - Source code filter to escape Cyrillic script
#
#
# Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019 INABA Hitoshi <ina@cpan.org>
######################################################################
use
5.00503;
# Galapagos Consensus 1998 for primetools
# use 5.008001; # Lancaster Consensus 2013 for toolchains
# 12.3. Delaying use Until Runtime
# in Chapter 12. Packages, Libraries, and Modules
# of ISBN 0-596-00313-7 Perl Cookbook, 2nd Edition.
# (and so on)
# Version numbers should be boring
# For the impatient, the disinterested or those who just want to follow
# a recipe, my advice for all modules is this:
# our $VERSION = "0.001"; # or "0.001_001" for a dev release
# $VERSION = CORE::eval $VERSION; # No!! because '1.10' makes '1.1'
$VERSION
=
'1.22'
;
$VERSION
=
$VERSION
;
BEGIN {
if
($^X =~ / jperl /oxmsi) {
die
__FILE__,
": needs perl(not jperl) 5.00503 or later. (\$^X==$^X)\n"
;
}
if
(CORE::
ord
(
'A'
) == 193) {
die
__FILE__,
": is not US-ASCII script (may be EBCDIC or EBCDIK script).\n"
;
}
if
(CORE::
ord
(
'A'
) != 0x41) {
die
__FILE__,
": is not US-ASCII script (must be US-ASCII script).\n"
;
}
}
BEGIN {
(
my
$dirname
= __FILE__) =~ s{^(.+)/[^/]*$}{$1};
unshift
@INC
,
$dirname
;
}
# instead of Symbol.pm
BEGIN {
sub
gensym () {
if
($] < 5.006) {
return
\
do
{
local
*_
};
}
else
{
return
undef
;
}
}
}
# P.714 29.2.39. flock
# in Chapter 29: Functions
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.863 flock
# in Chapter 27: Functions
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
# P.228 Inlining Constant Functions
# in Chapter 6: Subroutines
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.331 Inlining Constant Functions
# in Chapter 7: Subroutines
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
sub
LOCK_SH() {1}
sub
LOCK_EX() {2}
sub
LOCK_UN() {8}
sub
LOCK_NB() {4}
sub
unimport {}
sub
Cyrillic::escape_script;
# 6.18. Matching Multiple-Byte Characters
# in Chapter 6. Pattern Matching
# of ISBN 978-1-56592-243-3 Perl Perl Cookbook.
# (and so on)
# regexp of character
my
$qq_char
=
qr/(?> \\c[\x40-\x5F] | \\? (?:[\x00-\xFF] | [\x00-\xFF]) )/
oxms;
my
$q_char
=
qr/(?> [\x00-\xFF] | [\x00-\xFF] )/
oxms;
# when this script is main program
if
($0 eq __FILE__) {
# show usage
unless
(
@ARGV
) {
die
<<END;
$0: usage
perl $0 Cyrillic_script.pl > Escaped_script.pl.e
END
}
Cyrillic::escape_script(
$ARGV
[0]);
exit
0;
}
my
(
$package
,
$filename
,
$line
,
$subroutine
,
$hasargs
,
$wantarray
,
$evaltext
,
$is_require
,
$hints
,
$bitmask
) =
caller
0;
# called any package not main
if
(
$package
ne
'main'
) {
die
<<END;
@{[__FILE__]}: escape by manually command '$^X @{[__FILE__]} "$filename" > "@{[__PACKAGE__]}::$filename"'
and rewrite "use $package;" to "use @{[__PACKAGE__]}::$package;" of script "$0".
END
}
# P.302 Module Privacy and the Exporter
# in Chapter 11: Modules
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
#
# A module can do anything it jolly well pleases when it's used, since use just
# calls the ordinary import method for the module, and you can define that
# method to do anything you like.
# P.406 Module Privacy and the Exporter
# in Chapter 11: Modules
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
#
# A module can do anything it jolly well pleases when it's used, since use just
# calls the ordinary import method for the module, and you can define that
# method to do anything you like.
sub
import
{
if
(-e(
"$filename.e"
)) {
if
(
exists
$ENV
{
'CHAR_DEBUG'
}) {
unlink
"$filename.e"
;
}
elsif
(-z(
"$filename.e"
)) {
unlink
"$filename.e"
;
}
else
{
#----------------------------------------------------
# older >
# newer >>>>>
#----------------------------------------------------
# Filter >
# Source >>>>>
# Escape >>> needs re-escape (Source was changed)
#
# Filter >>>
# Source >>>>>
# Escape > needs re-escape (Source was changed)
#
# Filter >>>>>
# Source >>>
# Escape > needs re-escape (Source was changed)
#
# Filter >>>>>
# Source >
# Escape >>> needs re-escape (Filter was changed)
#
# Filter >
# Source >>>
# Escape >>>>> executable without re-escape
#
# Filter >>>
# Source >
# Escape >>>>> executable without re-escape
#----------------------------------------------------
my
$mtime_filter
= (
stat
(__FILE__ ))[9];
my
$mtime_source
= (
stat
(
$filename
))[9];
my
$mtime_escape
= (
stat
(
"$filename.e"
))[9];
if
((
$mtime_escape
<
$mtime_source
) or (
$mtime_escape
<
$mtime_filter
)) {
unlink
"$filename.e"
;
}
}
}
if
(not -e(
"$filename.e"
)) {
my
$fh
= gensym();
Ecyrillic::_open_a(
$fh
,
"$filename.e"
) or
die
__FILE__,
": Can't write open file: $filename.e\n"
;
# 7.19. Flushing Output
# in Chapter 7. File Access
# of ISBN 0-596-00313-7 Perl Cookbook, 2nd Edition.
select
((
select
(
$fh
), $|=1)[0]);
if
(0) {
}
elsif
(
exists
$ENV
{
'CHAR_NONBLOCK'
}) {
# P.419 File Locking
# in Chapter 16: Interprocess Communication
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.524 File Locking
# in Chapter 15: Interprocess Communication
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
# P.571 Handling Race Conditions
# in Chapter 23: Security
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.663 Handling Race Conditions
# in Chapter 20: Security
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
# (and so on)
CORE::
eval
q{ flock($fh, LOCK_EX | LOCK_NB) }
;
if
($@) {
die
__FILE__,
": Can't immediately write-lock the file: $filename.e\n"
;
}
}
else
{
CORE::
eval
q{ flock($fh, LOCK_EX) }
;
}
CORE::
eval
q{ truncate($fh, 0) }
;
seek
(
$fh
, 0, 0) or
die
__FILE__,
": Can't seek file: $filename.e\n"
;
my
$e_script
= Cyrillic::escape_script(
$filename
);
{
$fh
}
$e_script
;
my
$mode
= (
stat
(
$filename
))[2] & 0777;
chmod
$mode
,
"$filename.e"
;
close
(
$fh
) or
die
"Can't close file: $filename.e: $!"
;
}
my
$fh
= gensym();
Ecyrillic::_open_r(
$fh
,
"$filename.e"
) or
die
__FILE__,
": Can't read open file: $filename.e\n"
;
if
(0) {
}
elsif
(
exists
$ENV
{
'CHAR_NONBLOCK'
}) {
CORE::
eval
q{ flock($fh, LOCK_SH | LOCK_NB) }
;
if
($@) {
die
__FILE__,
": Can't immediately read-lock the file: $filename.e\n"
;
}
}
else
{
CORE::
eval
q{ flock($fh, LOCK_SH) }
;
}
my
@switch
= ();
if
($^W) {
push
@switch
,
'-w'
;
}
if
(
defined
$^I) {
push
@switch
,
'-i'
. $^I;
undef
$^I;
}
# P.707 29.2.33. exec
# in Chapter 29: Functions
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
#
# If there is more than one argument in LIST, or if LIST is an array with more
# than one value, the system shell will never be used. This also bypasses any
# shell processing of the command. The presence or absence of metacharacters in
# the arguments doesn't affect this list-triggered behavior, which makes it the
# preferred from in security-conscious programs that do not with to expose
# themselves to potential shell escapes.
# Environment variable PERL5SHELL(Microsoft ports only) will never be used, too.
# P.855 exec
# in Chapter 27: Functions
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
#
# If there is more than one argument in LIST, or if LIST is an array with more
# than one value, the system shell will never be used. This also bypasses any
# shell processing of the command. The presence or absence of metacharacters in
# the arguments doesn't affect this list-triggered behavior, which makes it the
# preferred from in security-conscious programs that do not wish to expose
# themselves to injection attacks via shell escapes.
# Environment variable PERL5SHELL(Microsoft ports only) will never be used, too.
# P.489 #! and Quoting on Non-Unix Systems
# in Chapter 19: The Command-Line Interface
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.578 #! and Quoting on Non-Unix Systems
# in Chapter 17: The Command-Line Interface
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
my
$system
= 0;
# DOS-like system
if
($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
$system
= Ecyrillic::_systemx(
_escapeshellcmd_MSWin32($^X),
# -I switch can not treat space included path
# (map { '-I' . _escapeshellcmd_MSWin32($_) } @INC),
(
map
{
'-I'
.
$_
}
@INC
),
@switch
,
'--'
,
map
{ _escapeshellcmd_MSWin32(
$_
) }
"$filename.e"
,
@ARGV
);
}
# UNIX-like system
else
{
$system
= Ecyrillic::_systemx(
_escapeshellcmd($^X),
(
map
{
'-I'
. _escapeshellcmd(
$_
) }
@INC
),
@switch
,
'--'
,
map
{ _escapeshellcmd(
$_
) }
"$filename.e"
,
@ARGV
);
}
# exit with actual exit value
exit
(
$system
>> 8);
}
# escape shell command line on DOS-like system
sub
_escapeshellcmd_MSWin32 {
my
(
$word
) =
@_
;
if
(
$word
=~ / [ ] /oxms) {
return
qq{"$word"}
;
}
else
{
return
$word
;
}
}
# escape shell command line on UNIX-like system
sub
_escapeshellcmd {
my
(
$word
) =
@_
;
return
$word
;
}
# P.619 Source Filters
# in Chapter 24: Common Practices
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.718 Source Filters
# in Chapter 21: Common Practices
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
# escape Cyrillic script
sub
Cyrillic::escape_script {
my
(
$script
) =
@_
;
my
$e_script
=
''
;
# read Cyrillic script
my
$fh
= gensym();
Ecyrillic::_open_r(
$fh
,
$script
) or
die
__FILE__,
": Can't open file: $script\n"
;
local
$/ =
undef
;
# slurp mode
$_
= <
$fh
>;
close
(
$fh
) or
die
"Can't close file: $script: $!"
;
return
$_
;
}
else
{
# #! shebang line
if
(s/\A(
#!.+?\n)//oms) {
my
$head
= $1;
$head
=~ s/\bjperl\b/perl/gi;
$e_script
.=
$head
;
}
# DOS-like system header
if
(s/\A(\
@rem
(?>\s*)=(?>\s*)
'.*?'
(?>\s*);\s*\n)//oms) {
my
$head
= $1;
$head
=~ s/\bjperl\b/perl/gi;
$e_script
.=
$head
;
}
# P.618 Generating Perl in Other Languages
# in Chapter 24: Common Practices
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.717 Generating Perl in Other Languages
# in Chapter 21: Common Practices
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
if
(s/(.*^
#(?>\s*)line(?>\s+)(?>[0-9]+)(?:(?>\s+)"(?:$q_char)+?")?\s*\n)//oms) {
my
$head
= $1;
$head
=~ s/\bjperl\b/perl/gi;
$e_script
.=
$head
;
}
# P.210 5.10.3.3. Match-time code evaluation
# in Chapter 5: Pattern Matching
# of ISBN 0-596-00027-8 Programming Perl Third Edition.
# P.255 Match-time code evaluation
# in Chapter 5: Pattern Matching
# of ISBN 978-0-596-00492-7 Programming Perl 4th Edition.
# '...' quote to avoid "Octal number in vector unsupported" on perl 5.6
$e_script
.=
sprintf
(
"use Ecyrillic '%s.0'; # 'quote' for perl5.6\n"
,
$Cyrillic::VERSION
); #
require
run-
time
routines version
# use Cyrillic version qw(ord reverse getc);
if
(s/^ (?>\s*)
use
(?>\s+) (?: Char | Cyrillic ) (?>\s*) ([^;]*) ; \s* \n? $//oxms) {
# require version
my
$list
= $1;
if
(
$list
=~ s/\A ((?>[0-9]+)\.(?>[0-9]+)) \.0 (?>\s*) //oxms) {
my
$version
= $1;
if
(
$version
ne
$Cyrillic::VERSION
) {
my
@file
=
grep
-e,
map
{
qq{$_/Cyrillic.pm}
}
@INC
;
my
%file
=
map
{
$_
=> 1 }
@file
;
if
(
scalar
(
keys
%file
) >= 2) {
my
$file
=
join
"\n"
,
sort
keys
%file
;
warn
<<END;
****************************************************
C A U T I O N
CONFLICT Cyrillic.pm FILE
$file
****************************************************
END
}
die
"Script $0 expects Cyrillic.pm $version, but @{[__FILE__]} is version $Cyrillic::VERSION\n"
;
}
$e_script
.=
qq{die "Script \$0 expects Ecyrillic.pm $version, but \\\$Ecyrillic::VERSION is \$Ecyrillic::VERSION" if \$Ecyrillic::VERSION ne '$version';\n}
;
}
elsif
(
$list
=~ s/\A ((?>[0-9]+)(?>\.[0-9]*)) (?>\s*) //oxms) {
my
$version
= $1;
if
(
$version
>
$Cyrillic::VERSION
) {
die
"Script $0 required Cyrillic.pm $version, but @{[__FILE__]} is only version $Cyrillic::VERSION\n"
;
}
}
# demand ord, reverse, and getc
if
(
$list
!~ /\A (?>\s*) \z/oxms) {
local
$@;
my
@list
= CORE::
eval
$list
;
for
(
@list
) {
$Ecyrillic::function_ord
=
'Cyrillic::ord'
if
/\A
ord
\z/oxms;
$Ecyrillic::function_ord_
=
'Cyrillic::ord_'
if
/\A
ord
\z/oxms;
$Ecyrillic::function_reverse
=
'Cyrillic::reverse'
if
/\A
reverse
\z/oxms;
$Ecyrillic::function_getc
=
'Cyrillic::getc'
if
/\A
getc
\z/oxms;
# avoid: used only once: possible typo at ...
$Ecyrillic::function_ord
=
$Ecyrillic::function_ord
;
$Ecyrillic::function_ord_
=
$Ecyrillic::function_ord_
;
$Ecyrillic::function_reverse
=
$Ecyrillic::function_reverse
;
$Ecyrillic::function_getc
=
$Ecyrillic::function_getc
;
}
}
}
}
$e_script
.= Cyrillic::escape();
return
$e_script
;
}
1;
__END__
=pod
=head1 NAME
Cyrillic - Source code filter to escape Cyrillic script
=head1 Install and Usage
There are two steps there:
=over 2
=item * You'll have to download Cyrillic.pm and Ecyrillic.pm and put it in your perl lib directory.
=item * You'll need to write "use Cyrillic;" at head of the script.
=back
=head1 SYNOPSIS
use Cyrillic;
use Cyrillic ver.sion; --- require minimum version
use Cyrillic ver.sion.0; --- expects version (match or die)
# "no Cyrillic;" not supported
or
$ perl Cyrillic.pm Cyrillic_script.pl > Escaped_script.pl.e
then
$ perl Escaped_script.pl.e
Cyrillic_script.pl --- script written in Cyrillic
Escaped_script.pl.e --- escaped script
subroutines:
Cyrillic::eval(...);
dummy functions:
utf8::upgrade(...);
utf8::downgrade(...);
utf8::encode(...);
utf8::decode(...);
utf8::is_utf8(...);
utf8::valid(...);
bytes::chr(...);
bytes::index(...);
bytes::length(...);
bytes::ord(...);
bytes::rindex(...);
bytes::substr(...);
=head1 ABSTRACT
Cyrillic software is "middleware" between perl interpreter and your Perl script
written in Cyrillic.
Perl is optimized for problems which are about 90% working with text and about
10% everything else. Even if this "text" doesn't contain Cyrillic, Perl3 or later
can treat Cyrillic as binary data.
By "use Cyrillic;", it automatically interpret your script as Cyrillic. The various
functions of perl including a regular expression can treat Cyrillic now.
The function length treats length per byte. This software does not use UTF8
flag.
=head1 Yet Another Future Of
JPerl is very useful software. -- Oops, note, this "JPerl" means "Japanized Perl"
or "Japanese Perl". Therefore, it is unrelated to JPerl of the following.
JPerl is an implementation of Perl written in Java.
jPerl - Perl on the JVM
Jamie's PERL scripts for bioinformatics
jperl (Jonathan Perl)
Now, the last version of JPerl is 5.005_04 and is not maintained now.
Japanization modifier WATANABE Hirofumi said,
"Because WATANABE am tired I give over maintaing JPerl."
at Slide #15: "The future of JPerl" of
in The Perl Confernce Japan 1998.
When I heard it, I thought that someone excluding me would maintain JPerl.
And I slept every night hanging a sock. Night and day, I kept having hope.
After 10 years, I noticed that white beard exists in the sock :-)
This software is a source code filter to escape Perl script encoded by Cyrillic
given from STDIN or command line parameter. The character code is never converted
by escaping the script. Neither the value of the character nor the length of the
character string change even if it escapes.
I learned the following things from the successful software.
=over 2
=item * Upper Compatibility like Perl4 to Perl5
=item * Maximum Portability like jcode.pl
=item * Remains One Language Handling Raw Cyrillic, Doesn't Use UTF8 flag like JPerl
=item * Remains One Interpreter like Encode module
=item * Code Set Independent like Ruby
=item * Monolithic Script like cpanminus
=item * There's more than one way to do it like Perl itself
=back
I am excited about this software and Perl's future --- I hope you are too.
=head1 JRE: JPerl Runtime Environment
+---------------------------------------+
| JPerl Application Script | Your Script
+---------------------------------------+
| Source Code Filter, Runtime Routine | ex. Cyrillic.pm, Ecyrillic.pm
+---------------------------------------+
| PVM 5.00503 or later | ex. perl 5.00503
+---------------------------------------+
A Perl Virtual Machine (PVM) enables a set of computer software programs and
data structures to use a virtual machine model for the execution of other
computer programs and scripts. The model used by a PVM accepts a form of
computer intermediate language commonly referred to as Perl byteorientedcode.
This language conceptually represents the instruction set of a byte-oriented,
capability architecture.
=head1 Basic Idea of Source Code Filter
I discovered this mail again recently.
[Tokyo.pm] jus Benkyoukai
save as: SJIS.pm
package SJIS;
use Filter::Util::Call;
sub multibyte_filter {
my $status;
if (($status = filter_read()) > 0 ) {
s/([\x81-\x9f\xe0-\xef])([\x40-\x7e\x80-\xfc])/
sprintf("\\x%02x\\x%02x",ord($1),ord($2))
/eg;
}
$status;
}
sub import {
filter_add(\&multibyte_filter);
}
1;
I am glad that I could confirm my idea is not so wrong.
=head1 Command-line Wildcard Expansion on DOS-like Systems
The default command shells on DOS-like systems (COMMAND.COM or cmd.exe or
Win95Cmd.exe) do not expand wildcard arguments supplied to programs. Instead,
import of Ecyrillic.pm works well.
in Ecyrillic.pm
#
# @ARGV wildcard globbing
#
sub import {
if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
my @argv = ();
for (@ARGV) {
# has space
if (/\A (?:$q_char)*? [ ] /oxms) {
if (my @glob = Ecyrillic::glob(qq{"$_"})) {
push @argv, @glob;
}
else {
push @argv, $_;
}
}
# has wildcard metachar
elsif (/\A (?:$q_char)*? [*?] /oxms) {
if (my @glob = Ecyrillic::glob($_)) {
push @argv, @glob;
}
else {
push @argv, $_;
}
}
# no wildcard globbing
else {
push @argv, $_;
}
}
@ARGV = @argv;
}
}
=head1 Software Composition
Cyrillic.pm --- source code filter to escape Cyrillic
Ecyrillic.pm --- run-time routines for Cyrillic.pm
=head1 Upper Compatibility by Escaping
This software adds the function by 'Escaping' it always, and nothing of the
past is broken. Therefore, 'Possible job' never becomes 'Impossible job'.
This approach is effective in the field where the retreat is never permitted.
It means incompatible upgrade of Perl should be rewound.
=head1 Escaping Your Script (You do)
You need write 'use Cyrillic;' in your script.
---------------------
You do
---------------------
use Cyrillic;
---------------------
=head1 Calling 'Ecyrillic::ignorecase()' (Cyrillic software provides)
Cyrillic software applies calling 'Ecyrillic::ignorecase()' instead of /i modifier.
--------------------------------------------------------------------------------
Before After
--------------------------------------------------------------------------------
m/...$var.../i m/...@{[Ecyrillic::ignorecase($var)]}.../
--------------------------------------------------------------------------------
=head1 Escaping Character Classes (Ecyrillic.pm provides)
The character classes are redefined as follows to backward compatibility.
---------------------------------------------------------------
Before After
---------------------------------------------------------------
. ${Ecyrillic::dot}
${Ecyrillic::dot_s} (/s modifier)
\d [0-9] (universally)
\s \s
\w [0-9A-Z_a-z] (universally)
\D ${Ecyrillic::eD}
\S ${Ecyrillic::eS}
\W ${Ecyrillic::eW}
\h [\x09\x20]
\v [\x0A\x0B\x0C\x0D]
\H ${Ecyrillic::eH}
\V ${Ecyrillic::eV}
\C [\x00-\xFF]
\X X (so, just 'X')
\R ${Ecyrillic::eR}
\N ${Ecyrillic::eN}
---------------------------------------------------------------
Also POSIX-style character classes.
---------------------------------------------------------------
Before After
---------------------------------------------------------------
[:alnum:] [\x30-\x39\x41-\x5A\x61-\x7A]
[:alpha:] [\x41-\x5A\x61-\x7A]
[:ascii:] [\x00-\x7F]
[:blank:] [\x09\x20]
[:cntrl:] [\x00-\x1F\x7F]
[:digit:] [\x30-\x39]
[:graph:] [\x21-\x7F]
[:lower:] [\x61-\x7A]
[\x41-\x5A\x61-\x7A] (/i modifier)
[:print:] [\x20-\x7F]
[:punct:] [\x21-\x2F\x3A-\x3F\x40\x5B-\x5F\x60\x7B-\x7E]
[:space:] [\s\x0B]
[:upper:] [\x41-\x5A]
[\x41-\x5A\x61-\x7A] (/i modifier)
[:word:] [\x30-\x39\x41-\x5A\x5F\x61-\x7A]
[:xdigit:] [\x30-\x39\x41-\x46\x61-\x66]
[:^alnum:] ${Ecyrillic::not_alnum}
[:^alpha:] ${Ecyrillic::not_alpha}
[:^ascii:] ${Ecyrillic::not_ascii}
[:^blank:] ${Ecyrillic::not_blank}
[:^cntrl:] ${Ecyrillic::not_cntrl}
[:^digit:] ${Ecyrillic::not_digit}
[:^graph:] ${Ecyrillic::not_graph}
[:^lower:] ${Ecyrillic::not_lower}
${Ecyrillic::not_lower_i} (/i modifier)
[:^print:] ${Ecyrillic::not_print}
[:^punct:] ${Ecyrillic::not_punct}
[:^space:] ${Ecyrillic::not_space}
[:^upper:] ${Ecyrillic::not_upper}
${Ecyrillic::not_upper_i} (/i modifier)
[:^word:] ${Ecyrillic::not_word}
[:^xdigit:] ${Ecyrillic::not_xdigit}
---------------------------------------------------------------
\b and \B are redefined as follows to backward compatibility.
---------------------------------------------------------------
Before After
---------------------------------------------------------------
\b ${Ecyrillic::eb}
\B ${Ecyrillic::eB}
---------------------------------------------------------------
Definitions in Ecyrillic.pm.
---------------------------------------------------------------------------------------------------------------------------------------------------------
After Definition
---------------------------------------------------------------------------------------------------------------------------------------------------------
${Ecyrillic::dot} qr{(?>[^\x0A])};
${Ecyrillic::dot_s} qr{(?>[\x00-\xFF])};
${Ecyrillic::eD} qr{(?>[^0-9])};
${Ecyrillic::eS} qr{(?>[^\s])};
${Ecyrillic::eW} qr{(?>[^0-9A-Z_a-z])};
${Ecyrillic::eH} qr{(?>[^\x09\x20])};
${Ecyrillic::eV} qr{(?>[^\x0A\x0B\x0C\x0D])};
${Ecyrillic::eR} qr{(?>\x0D\x0A|[\x0A\x0D])};
${Ecyrillic::eN} qr{(?>[^\x0A])};
${Ecyrillic::not_alnum} qr{(?>[^\x30-\x39\x41-\x5A\x61-\x7A])};
${Ecyrillic::not_alpha} qr{(?>[^\x41-\x5A\x61-\x7A])};
${Ecyrillic::not_ascii} qr{(?>[^\x00-\x7F])};
${Ecyrillic::not_blank} qr{(?>[^\x09\x20])};
${Ecyrillic::not_cntrl} qr{(?>[^\x00-\x1F\x7F])};
${Ecyrillic::not_digit} qr{(?>[^\x30-\x39])};
${Ecyrillic::not_graph} qr{(?>[^\x21-\x7F])};
${Ecyrillic::not_lower} qr{(?>[^\x61-\x7A])};
${Ecyrillic::not_lower_i} qr{(?>[^\x41-\x5A\x61-\x7A])}; # Perl 5.16 compatible
# ${Ecyrillic::not_lower_i} qr{(?>[\x00-\xFF])}; # older Perl compatible
${Ecyrillic::not_print} qr{(?>[^\x20-\x7F])};
${Ecyrillic::not_punct} qr{(?>[^\x21-\x2F\x3A-\x3F\x40\x5B-\x5F\x60\x7B-\x7E])};
${Ecyrillic::not_space} qr{(?>[^\s\x0B])};
${Ecyrillic::not_upper} qr{(?>[^\x41-\x5A])};
${Ecyrillic::not_upper_i} qr{(?>[^\x41-\x5A\x61-\x7A])}; # Perl 5.16 compatible
# ${Ecyrillic::not_upper_i} qr{(?>[\x00-\xFF])}; # older Perl compatible
${Ecyrillic::not_word} qr{(?>[^\x30-\x39\x41-\x5A\x5F\x61-\x7A])};
${Ecyrillic::not_xdigit} qr{(?>[^\x30-\x39\x41-\x46\x61-\x66])};
# This solution is not perfect. I beg better solution from you who are reading this.
${Ecyrillic::eb} qr{(?:\A(?=[0-9A-Z_a-z])|(?<=[\x00-\x2F\x40\x5B-\x5E\x60\x7B-\xFF])(?=[0-9A-Z_a-z])|(?<=[0-9A-Z_a-z])(?=[\x00-\x2F\x40\x5B-\x5E\x60\x7B-\xFF]|\z))};
${Ecyrillic::eB} qr{(?:(?<=[0-9A-Z_a-z])(?=[0-9A-Z_a-z])|(?<=[\x00-\x2F\x40\x5B-\x5E\x60\x7B-\xFF])(?=[\x00-\x2F\x40\x5B-\x5E\x60\x7B-\xFF]))};
---------------------------------------------------------------------------------------------------------------------------------------------------------
=head1 Un-Escaping \ of \b{}, \B{}, \N{}, \p{}, \P{}, and \X (Cyrillic software provides)
Cyrillic software removes '\' at head of alphanumeric regexp metasymbols \b{}, \B{},
\N{}, \p{}, \P{} and \X. By this method, you can avoid the trap of the abstraction.
See also,
Deprecate literal unescaped "{" in regexes.
------------------------------------
Before After
------------------------------------
\b{...} b\{...}
\B{...} B\{...}
\N{CHARNAME} N\{CHARNAME}
\p{L} p\{L}
\p{^L} p\{^L}
\p{\^L} p\{\^L}
\pL pL
\P{L} P\{L}
\P{^L} P\{^L}
\P{\^L} P\{\^L}
\PL PL
\X X
------------------------------------
=head1 Escaping Built-in Functions (Cyrillic software provides)
Insert 'Ecyrillic::' at head of function name. Ecyrillic.pm provides your script Ecyrillic::*
subroutines.
-------------------------------------------
Before After Works as
-------------------------------------------
lc Ecyrillic::lc Character
lcfirst Ecyrillic::lcfirst Character
uc Ecyrillic::uc Character
ucfirst Ecyrillic::ucfirst Character
fc Ecyrillic::fc Character
chr Ecyrillic::chr Character
glob Ecyrillic::glob Character
-------------------------------------------
------------------------------------------------------------------------------------------------------------------------
Before After
------------------------------------------------------------------------------------------------------------------------
use Perl::Module; BEGIN { require 'Perl/Module.pm'; Perl::Module->import() if Perl::Module->can('import'); }
use Perl::Module @list; BEGIN { require 'Perl/Module.pm'; Perl::Module->import(@list) if Perl::Module->can('import'); }
use Perl::Module (); BEGIN { require 'Perl/Module.pm'; }
no Perl::Module; BEGIN { require 'Perl/Module.pm'; Perl::Module->unimport() if Perl::Module->can('unimport'); }
no Perl::Module @list; BEGIN { require 'Perl/Module.pm'; Perl::Module->unimport(@list) if Perl::Module->can('unimport'); }
no Perl::Module (); BEGIN { require 'Perl/Module.pm'; }
------------------------------------------------------------------------------------------------------------------------
=head1 Yada Yada Operator (Cyrillic software provides)
The yada yada operator (noted ...) is a placeholder for code. Perl parses it
without error, but when you try to execute a yada yada, it throws an exception
with the text Unimplemented:
sub unimplemented { ... }
eval { unimplemented() };
if ( $@ eq 'Unimplemented' ) {
print "I found the yada yada!\n";
}
You can only use the yada yada to stand in for a complete statement. These
examples of the yada yada work:
{ ... }
sub foo { ... }
...;
eval { ... };
sub foo {
my( $self ) = shift;
...;
}
do { my $n; ...; print 'Hurrah!' };
The yada yada cannot stand in for an expression that is part of a larger statement
since the ... is also the three-dot version of the range operator
(see "Range Operators"). These examples of the yada yada are still syntax errors:
print ...;
open my($fh), '>', '/dev/passwd' or ...;
if ( $condition && ... ) { print "Hello\n" };
There are some cases where Perl can't immediately tell the difference between an
expression and a statement. For instance, the syntax for a block and an anonymous
hash reference constructor look the same unless there's something in the braces that
give Perl a hint. The yada yada is a syntax error if Perl doesn't guess that the
{ ... } is a block. In that case, it doesn't think the ... is the yada yada because
it's expecting an expression instead of a statement:
my @transformed = map { ... } @input; # syntax error
You can use a ; inside your block to denote that the { ... } is a block and not a
hash reference constructor. Now the yada yada works:
my @transformed = map {; ... } @input; # ; disambiguates
my @transformed = map { ...; } @input; # ; disambiguates
=head1 Un-Escaping bytes::* Subroutines (Cyrillic software provides)
Cyrillic software removes 'bytes::' at head of subroutine name.
---------------------------------------
Before After Works as
---------------------------------------
bytes::chr chr Byte
bytes::index index Byte
bytes::length length Byte
bytes::ord ord Byte
bytes::rindex rindex Byte
bytes::substr substr Byte
---------------------------------------
=head1 Ignore Pragmas and Modules
-----------------------------------------------------------
Before After
-----------------------------------------------------------
use strict; use strict; no strict qw(refs);
use 5.12.0; use 5.12.0; no strict qw(refs);
require utf8; # require utf8;
require bytes; # require bytes;
require charnames; # require charnames;
require I18N::Japanese; # require I18N::Japanese;
require I18N::Collate; # require I18N::Collate;
require I18N::JExt; # require I18N::JExt;
require File::DosGlob; # require File::DosGlob;
require Wild; # require Wild;
require Wildcard; # require Wildcard;
require Japanese; # require Japanese;
use utf8; # use utf8;
use bytes; # use bytes;
use charnames; # use charnames;
use I18N::Japanese; # use I18N::Japanese;
use I18N::Collate; # use I18N::Collate;
use I18N::JExt; # use I18N::JExt;
use File::DosGlob; # use File::DosGlob;
use Wild; # use Wild;
use Wildcard; # use Wildcard;
use Japanese; # use Japanese;
no utf8; # no utf8;
no bytes; # no bytes;
no charnames; # no charnames;
no I18N::Japanese; # no I18N::Japanese;
no I18N::Collate; # no I18N::Collate;
no I18N::JExt; # no I18N::JExt;
no File::DosGlob; # no File::DosGlob;
no Wild; # no Wild;
no Wildcard; # no Wildcard;
no Japanese; # no Japanese;
-----------------------------------------------------------
Comment out pragma to ignore utf8 environment, and Ecyrillic.pm provides these
functions.
=over 2
=item * Dummy utf8::upgrade
$num_octets = utf8::upgrade($string);
Returns the number of octets necessary to represent the string.
=item * Dummy utf8::downgrade
$success = utf8::downgrade($string[, FAIL_OK]);
Returns true always.
=item * Dummy utf8::encode
utf8::encode($string);
Returns nothing.
=item * Dummy utf8::decode
$success = utf8::decode($string);
Returns true always.
=item * Dummy utf8::is_utf8
$flag = utf8::is_utf8(STRING);
Returns false always.
=item * Dummy utf8::valid
$flag = utf8::valid(STRING);
Returns true always.
=item * Dummy bytes::chr
This subroutine is same as chr.
=item * Dummy bytes::index
This subroutine is same as index.
=item * Dummy bytes::length
This subroutine is same as length.
=item * Dummy bytes::ord
This subroutine is same as ord.
=item * Dummy bytes::rindex
This subroutine is same as rindex.
=item * Dummy bytes::substr
This subroutine is same as substr.
=back
=head1 Environment Variable
This software uses the flock function for exclusive control. The execution of the
program is blocked until it becomes possible to read or write the file.
You can have it not block in the flock function by defining environment variable
CHAR_NONBLOCK.
Example:
SET CHAR_NONBLOCK=1
(The value '1' doesn't have the meaning)
=head1 BUGS, LIMITATIONS, and COMPATIBILITY
I have tested and verified this software using the best of my ability.
However, a software containing much regular expression is bound to contain
some bugs. Thus, if you happen to find a bug that's in Cyrillic software and
not your own program, you can try to reduce it to a minimal test case and
then report it to the following author's address. If you have an idea that
could make this a more useful tool, please let everyone share it.
=over 2
=item * (dummy item to avoid Test::Pod error)
=item * cloister of regular expression
The cloister (?s) and (?i) of a regular expression will not be implemented for
the time being. Cloister (?s) can be substituted with the .(dot) and \N on /s
modifier. Cloister (?i) can be substituted with \F...\E.
=item * Modifier /a /d /l and /u of Regular Expression
The concept of this software is not to use two or more encoding methods as
literal string and literal of regexp in one Perl script. Therefore, modifier
/a, /d, /l, and /u are not supported.
\d means [0-9] universally.
=item * Named Character
A named character, such \N{GREEK SMALL LETTER EPSILON}, \N{greek:epsilon}, or
\N{epsilon} is not supported.
=item * Unicode Properties (aka Character Properties) of Regular Expression
Unicode properties (aka character properties) of regexp are not available.
Also (?[]) in regexp of Perl 5.18 is not available. There is no plans to currently
support these.
=item * Delimiter of String and Regexp
qq//, q//, qw//, qx//, qr//, m//, s///, tr///, and y/// can't use a wide character
as the delimiter.
=item * \b{...} Boundaries in Regular Expressions
Following \b{...} available starting in v5.22 are not supported.
\b{gcb} or \b{g} Unicode "Grapheme Cluster Boundary"
\b{sb} Unicode "Sentence Boundary"
\b{wb} Unicode "Word Boundary"
\B{gcb} or \B{g} Unicode "Grapheme Cluster Boundary" doesn't match
\B{sb} Unicode "Sentence Boundary" doesn't match
\B{wb} Unicode "Word Boundary" doesn't match
=back
=head1 AUTHOR
INABA Hitoshi E<lt>ina@cpan.orgE<gt>
This project was originated by INABA Hitoshi.
=head1 LICENSE AND COPYRIGHT
This software is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
=head1 My Goal
P.401 See chapter 15: Unicode
of ISBN 0-596-00027-8 Programming Perl Third Edition.
Before the introduction of Unicode support in perl, The eq operator
just compared the byte-strings represented by two scalars. Beginning
with perl 5.8, eq compares two byte-strings with simultaneous
consideration of the UTF8 flag.
/* You are not expected to understand this */
Information processing model beginning with perl 5.8
+----------------------+---------------------+
| Text strings | |
+----------+-----------| Binary strings |
| UTF-8 | Latin-1 | |
+----------+-----------+---------------------+
| UTF8 | Not UTF8 |
| Flagged | Flagged |
+--------------------------------------------+
Confusion of Perl string model is made from double meanings of
"Binary string."
Meanings of "Binary string"
1. Non-Text string
2. Digital octet string
Let's draw again using those term.
+----------------------+---------------------+
| Text strings | |
+----------+-----------| Non-Text strings |
| UTF-8 | Latin-1 | |
+----------+-----------+---------------------+
| UTF8 | Not UTF8 |
| Flagged | Flagged |
+--------------------------------------------+
| Digital octet string |
+--------------------------------------------+
There are people who don't agree to change in the character string
processing model of Perl 5.8. It is impossible to get to agree it to
majority of Perl user who hardly ever use Perl.
How to solve it by returning to a original method, let's drag out
page 402 of the old dusty Programming Perl, 3rd ed. again.
Information processing model beginning with perl3 or this software
of UNIX/C-ism.
+--------------------------------------------+
| Text string as Digital octet string |
| Digital octet string as Text string |
+--------------------------------------------+
| Not UTF8 Flagged, No Mojibake |
+--------------------------------------------+
In UNIX Everything is a File
- In UNIX everything is a stream of bytes
- In UNIX the filesystem is used as a universal name space
Native Encoding Scripting
- native encoding of file contents
- native encoding of file name on filesystem
- native encoding of command line
- native encoding of environment variable
- native encoding of API
- native encoding of network packet
- native encoding of database
Ideally, I'd like to achieve these five Goals:
=over 2
=item * Goal #1:
Old byte-oriented programs should not spontaneously break on the old
byte-oriented data they used to work on.
This goal has been achieved by that this software is additional code
for perl like utf8 pragma. Perl should work same as past Perl if added
nothing.
=item * Goal #2:
Old byte-oriented programs should magically start working on the new
character-oriented data when appropriate.
Still now, 1 octet is counted with 1 by built-in functions length,
substr, index, rindex, and pos that handle length and position of string.
In this part, there is no change. The length of 1 character of 2 octet
code is 2.
On the other hand, the regular expression in the script is added the
multibyte anchoring processing with this software, instead of you.
figure of Goal #1 and Goal #2.
GOAL#1 GOAL#2
(a) (b) (c) (d) (e)
+--------------+-------+-------+-------+-------+-------+
| data | Old | Old | New | Old | New |
+--------------+-------+-------+-------+-------+-------+
| script | Old | Old | New |
+--------------+-------+---------------+---------------+
| interpreter | Old | New |
+--------------+-------+-------------------------------+
Old --- Old byte-oriented
New --- New character-oriented
There is a combination from (a) to (e) in data, script, and interpreter
of old and new. Let's add the Encode module and this software did not
exist at time of be written this document and JPerl did exist.
(a) (b) (c) (d) (e)
JPerl,japerl Encode,Cyrillic
+--------------+-------+-------+-------+-------+-------+
| data | Old | Old | New | Old | New |
+--------------+-------+-------+-------+-------+-------+
| script | Old | Old | New |
+--------------+-------+---------------+---------------+
| interpreter | Old | New |
+--------------+-------+-------------------------------+
Old --- Old byte-oriented
New --- New character-oriented
The reason why JPerl is very excellent is that it is at the position of
(c). That is, it is not necessary to do a special description to the
script to process new character-oriented string.
(May the japerl take over JPerl!)
=item * Goal #3:
Programs should run just as fast in the new character-oriented mode
as in the old byte-oriented mode.
It is impossible. Because the following time is necessary.
(1) Time of escape script for old byte-oriented perl.
Someday, I want to ask Larry Wall about this goal in the elevator.
=item * Goal #4:
Perl should remain one language, rather than forking into a
byte-oriented Perl and a character-oriented Perl.
JPerl remains one Perl language by forking to two interpreters.
However, the Perl core team did not desire fork of the interpreter.
As a result, Perl language forked contrary to goal #4.
A character-oriented perl is not necessary to make it specially,
because a byte-oriented perl can already treat the binary data.
This software is only an application program of byte-oriented Perl,
a filter program.
And you will get support from the Perl community, when you solve the
problem by the Perl script.
Cyrillic software remains one language and one interpreter.
=item * Goal #5:
JPerl users will be able to maintain JPerl by Perl.
May the JPerl be with you, always.
=back
Back when Programming Perl, 3rd ed. was written, UTF8 flag was not born
and Perl is designed to make the easy jobs easy. This software provides
programming environment like at that time.
=head1 Perl's motto
Some computer scientists (the reductionists, in particular) would
like to deny it, but people have funny-shaped minds. Mental geography
is not linear, and cannot be mapped onto a flat surface without
severe distortion. But for the last score years or so, computer
reductionists have been first bowing down at the Temple of Orthogonality,
then rising up to preach their ideas of ascetic rectitude to any who
would listen.
Their fervent but misguided desire was simply to squash your mind to
fit their mindset, to smush your patterns of thought into some sort of
Hyperdimensional Flatland. It's a joyless existence, being smushed.
--- Learning Perl on Win32 Systems
If you think this is a big headache, you're right. No one likes
this situation, but Perl does the best it can with the input and
encodings it has to deal with. If only we could reset history and
not make so many mistakes next time.
--- Learning Perl 6th Edition
The most important thing for most people to know about handling
Unicode data in Perl, however, is that if you don't ever use any Uni-
code data -- if none of your files are marked as UTF-8 and you don't
use UTF-8 locales -- then you can happily pretend that you're back in
Perl 5.005_03 land; the Unicode features will in no way interfere with
your code unless you're explicitly using them. Sometimes the twin
goals of embracing Unicode but not disturbing old-style byte-oriented
scripts has led to compromise and confusion, but it's the Perl way to
silently do the right thing, which is what Perl ends up doing.
--- Advanced Perl Programming, 2nd Edition
=head1 SEE ALSO
PERL PUROGURAMINGU
Larry Wall, Randal L.Schwartz, Yoshiyuki Kondo
December 1997
ISBN 4-89052-384-7
http://www.context.co.jp/~cond/books/old-books.html
Programming Perl, Second Edition
By Larry Wall, Tom Christiansen, Randal L. Schwartz
October 1996
Pages: 670
ISBN 10: 1-56592-149-6 | ISBN 13: 9781565921498
Programming Perl, Third Edition
By Larry Wall, Tom Christiansen, Jon Orwant
Third Edition July 2000
Pages: 1104
ISBN 10: 0-596-00027-8 | ISBN 13: 9780596000271
The Perl Language Reference Manual (for Perl version 5.12.1)
by Larry Wall and others
Paperback (6"x9"), 724 pages
Retail Price: $39.95 (pound 29.95 in UK)
ISBN-13: 978-1-906966-02-7
Perl Pocket Reference, 5th Edition
By Johan Vromans
Publisher: O'Reilly Media
Released: July 2011
Pages: 102
Programming Perl, 4th Edition
By: Tom Christiansen, brian d foy, Larry Wall, Jon Orwant
Publisher: O'Reilly Media
Formats: Print, Ebook, Safari Books Online
Released: March 2012
Pages: 1130
Print ISBN: 978-0-596-00492-7 | ISBN 10: 0-596-00492-3
Ebook ISBN: 978-1-4493-9890-3 | ISBN 10: 1-4493-9890-1
Perl Cookbook
By Tom Christiansen, Nathan Torkington
August 1998
Pages: 800
ISBN 10: 1-56592-243-3 | ISBN 13: 978-1-56592-243-3
Perl Cookbook, Second Edition
By Tom Christiansen, Nathan Torkington
Second Edition August 2003
Pages: 964
ISBN 10: 0-596-00313-7 | ISBN 13: 9780596003135
Perl in a Nutshell, Second Edition
By Stephen Spainhour, Ellen Siever, Nathan Patwardhan
Second Edition June 2002
Pages: 760
Series: In a Nutshell
ISBN 10: 0-596-00241-6 | ISBN 13: 9780596002411
Learning Perl on Win32 Systems
By Randal L. Schwartz, Erik Olson, Tom Christiansen
August 1997
Pages: 306
ISBN 10: 1-56592-324-3 | ISBN 13: 9781565923249
Learning Perl, Fifth Edition
By Randal L. Schwartz, Tom Phoenix, brian d foy
June 2008
Pages: 352
Print ISBN:978-0-596-52010-6 | ISBN 10: 0-596-52010-7
Ebook ISBN:978-0-596-10316-3 | ISBN 10: 0-596-10316-6
Learning Perl, 6th Edition
By Randal L. Schwartz, brian d foy, Tom Phoenix
June 2011
Pages: 390
ISBN-10: 1449303587 | ISBN-13: 978-1449303587
Advanced Perl Programming, 2nd Edition
By Simon Cozens
June 2005
Pages: 300
ISBN-10: 0-596-00456-7 | ISBN-13: 978-0-596-00456-9
Perl RESOURCE KIT UNIX EDITION
Futato, Irving, Jepson, Patwardhan, Siever
ISBN 10: 1-56592-370-7
Perl Resource Kit -- Win32 Edition
Erik Olson, Brian Jepson, David Futato, Dick Hardt
ISBN 10:1-56592-409-6
MODAN Perl NYUMON
By Daisuke Maki
2009/2/10
Pages: 344
ISBN 10: 4798119172 | ISBN 13: 978-4798119175
Understanding Japanese Information Processing
By Ken Lunde
January 1900
Pages: 470
ISBN 10: 1-56592-043-0 | ISBN 13: 9781565920439
CJKV Information Processing
Chinese, Japanese, Korean & Vietnamese Computing
By Ken Lunde
First Edition January 1999
Pages: 1128
ISBN 10: 1-56592-224-7 | ISBN 13: 9781565922242
Mastering Regular Expressions, Second Edition
By Jeffrey E. F. Friedl
Second Edition July 2002
Pages: 484
ISBN 10: 0-596-00289-0 | ISBN 13: 9780596002893
Mastering Regular Expressions, Third Edition
By Jeffrey E. F. Friedl
Third Edition August 2006
Pages: 542
ISBN 10: 0-596-52812-4 | ISBN 13:9780596528126
Regular Expressions Cookbook
By Jan Goyvaerts, Steven Levithan
May 2009
Pages: 512
ISBN 10:0-596-52068-9 | ISBN 13: 978-0-596-52068-7
Regular Expressions Cookbook, 2nd Edition
By Jan Goyvaerts, Steven Levithan
Final Release Date: August 2012
Pages: 612
ISBN: 978-1-4493-1943-4 | ISBN 10:1-4493-1943-2
JIS KANJI JITEN
By Kouji Shibano
Pages: 1456
ISBN 4-542-20129-5
UNIX MAGAZINE
1993 Aug
Pages: 172
T1008901080816 ZASSHI 08901-8
LINUX NIHONGO KANKYO
By YAMAGATA Hiroo, Stephen J. Turnbull, Craig Oda, Robert J. Bickel
June, 2000
Pages: 376
ISBN 4-87311-016-5
MacPerl Power and Ease
By Vicki Brown, Chris Nandor
April 1998
Pages: 350
ISBN 10: 1881957322 | ISBN 13: 978-1881957324
Windows NT Shell Scripting
By Timothy Hill
April 27, 1998
Pages: 400
ISBN 10: 1578700477 | ISBN 13: 9781578700479
Windows(R) Command-Line Administrators Pocket Consultant, 2nd Edition
By William R. Stanek
February 2009
Pages: 594
ISBN 10: 0-7356-2262-0 | ISBN 13: 978-0-7356-2262-3
Kaoru Maeda, Perl's history Perl 1,2,3,4
nurse, What is "string"
NISHIO Hirokazu, What's meant "string as a sequence of characters"?
nurse, History of Japanese EUC 22:00
Mike Whitaker, Perl And Unicode
Ricardo Signes, Perl 5.14 for Pragmatists
Ricardo Signes, What's New in Perl? v5.10 - v5.16 #'
YAP(achimon)C::Asia Hachioji 2016 mid in Shinagawa
Kenichi Ishigaki (@charsbar) July 3, 2016 YAP(achimon)C::Asia Hachioji 2016mid
CPAN Directory INABA Hitoshi
BackPAN
Recent Perl packages by "INABA Hitoshi"
=head1 ACKNOWLEDGEMENTS
This software was made referring to software and the document that the
following hackers or persons had made.
I am thankful to all persons.
Rick Yamashita, Shift_JIS
ttp://furukawablog.spaces.live.com/Blog/cns!1pmWgsL289nm7Shn7cS0jHzA!2225.entry (dead link)
(add 'h' at head)
Larry Wall, Perl
Kazumasa Utashiro, jcode.pl
http://search.cpan.org/~utashiro/
Jeffrey E. F. Friedl, Mastering Regular Expressions
SADAHIRO Tomoyuki, The right way of using Shift_JIS
http://search.cpan.org/~sadahiro/
Yukihiro "Matz" Matsumoto, YAPC::Asia2006 Ruby on Perl(s)
http://www.rubyist.net/~matz/slides/yapc2006/
jscripter, For jperl users
Bruce., Unicode in Perl
Hiroaki Izumi, Perl5.8/Perl5.10 is not useful on the Windows.
TSUKAMOTO Makio, Perl memo/file path of Windows
chaichanPaPa, Matching Shift_JIS file name
SUZUKI Norio, Jperl
WATANABE Hirofumi, Jperl
http://search.cpan.org/~watanabe/
Chuck Houpt, Michiko Nozu, MacJPerl
Kenichi Ishigaki, Pod-PerldocJp, Welcome to modern Perl world
Fuji, Goro (gfx), Perl Hackers Hub No.16
Dan Kogai, Encode module
Takahashi Masatuyo, JPerl Wiki
Juerd, Perl Unicode Advice
daily dayflower, 2008-06-25 perluniadvice
Unicode issues in Perl
Jesse Vincent, Compatibility is a virtue
Tokyo-pm archive
Error: Runtime exception on jperl 5.005_03
ruby-list
Object-oriented with Perl
=cut