| 1 | package CP932IBM::R2; | ||||||||||
| 2 | ###################################################################### | ||||||||||
| 3 | # | ||||||||||
| 4 | # CP932IBM::R2 - provides minimal CP932IBM I/O subroutines by short name | ||||||||||
| 5 | # | ||||||||||
| 6 | # http://search.cpan.org/dist/CP932IBM-R2/ | ||||||||||
| 7 | # | ||||||||||
| 8 | # Copyright (c) 2019, 2021 INABA Hitoshi <ina@cpan.org> in a CPAN | ||||||||||
| 9 | ###################################################################### | ||||||||||
| 10 | |||||||||||
| 11 | 12 | ▶ | use 5.00503; # Universal Consensus 1998 for primetools | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | # use 5.008001; # Lancaster Consensus 2013 for toolchains | ||||||||||
| 13 | |||||||||||
| 14 | 12 | $VERSION = '0.07'; | |||||||||
| 15 | 12 | $VERSION = $VERSION; | |||||||||
| 16 | |||||||||||
| 17 | 12 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 12 | ▶ | BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; | ||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||
| 19 | 12 | ▶ | use UTF8::R2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 12 | ▶ | use IOas::CP932IBM; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | |||||||||||
| 22 | 12 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 12 | ▶ | no strict qw(refs); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | 12 | tie my %mb, 'UTF8::R2'; | |||||||||
| 25 | 12 | *{caller().'::mb'} = \%mb; | |||||||||
| 26 | 12 | ▶ | *{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 12 | *{caller().'::mbtr' } = \&UTF8::R2::tr; | |||||||||
| 28 | 12 | *{caller().'::iolen' } = \&IOas::CP932IBM::length; | |||||||||
| 29 | 12 | *{caller().'::iomid' } = \&IOas::CP932IBM::substr; | |||||||||
| 30 | 12 | *{caller().'::ioget' } = \&IOas::CP932IBM::readline; | |||||||||
| 31 | 12 | *{caller().'::ioput' } = \&IOas::CP932IBM::print; | |||||||||
| 32 | 12 | *{caller().'::ioputf'} = \&IOas::CP932IBM::printf; | |||||||||
| 33 | 12 | *{caller().'::iosort'} = \&IOas::CP932IBM::sort; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 12 | 1; | |||||||||
| 37 | |||||||||||
| 38 | __END__ | ||||||||||