| 1 | package PerlIO::via::escape_ansi; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | require 5.008; | |||||||||
| 4 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 3 | ▶ | use XSLoader; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | { | ||||||||||
| 10 | 3 | ▶ | no strict "vars"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | $VERSION = "0.01"; | |||||||||
| 12 | 3 | XSLoader::load(__PACKAGE__, $VERSION); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 3 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=2 SCAR=6.9
| |||||||||||
| 17 | 3 | my ($class, @args) = @_; | |||||||||
| 18 | |||||||||||
| 19 | 3 | ▶ | if (grep { $_ eq "-as_function" } @args) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 3 | ▶ | no strict "vars"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 1 | require Exporter; | |||||||||
| 22 | 1 | @ISA = qw< Exporter >; | |||||||||
| 23 | 1 | @EXPORT = qw< escape_non_printable_chars >; | |||||||||
| 24 | 1 | $class->export_to_level(1); | |||||||||
| 25 | } | ||||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | # | ||||||||||
| 30 | # PerlIO methods | ||||||||||
| 31 | # -------------- | ||||||||||
| 32 | |||||||||||
| 33 | 3 | ▶ | sub PUSHED { | ||||||||
|
Subroutine
PUSHED: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 34 | 3 | my ($class, $mode) = @_; | |||||||||
| 35 | 3 | return bless {}, $class; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 6 | ▶ | sub FILL { | ||||||||
|
Subroutine
FILL: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 39 | 6 | my ($self, $fh) = @_; | |||||||||
| 40 | 6 | my $line = <$fh>; | |||||||||
| 41 | 6 | ▶ | return undef unless defined $line; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 3 | return escape_non_printable_chars ($line); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | |||||||||||
| 46 | 3 | "true value on strike" | |||||||||
| 47 | |||||||||||
| 48 | __END__ | ||||||||||