| 1 | # | ||||||||||
| 2 | |||||||||||
| 3 | package IO; | ||||||||||
| 4 | |||||||||||
| 5 | 7 | ▶ | use XSLoader (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 7 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 7 | our $VERSION = "1.56"; | |||||||||
| 11 | 7 | XSLoader::load 'IO', $VERSION; | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub import { | ||||||||
|
Subroutine
import: not called CC=5 SCAR=34.0
| |||||||||||
| 14 | 0 | shift; | |||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated}) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | if @_ == 0 ; | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | local @INC = @INC; | |||||||||
| 22 | 0 | ▶ | pop @INC if $INC[-1] eq '.'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | ▶ | eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | or croak $@; | ||||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 7 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||