| 1 | package Perl::APIReference::V5_028_000; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Sereal::Decoder; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use parent 'Perl::APIReference'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 5 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 8 | 5 | my $class = shift; | |
| 9 | 5 | my $pos = tell(*DATA); | |
| 10 | 5 | binmode(*DATA); | |
| 11 | 5 | local $/ = undef; | |
| 12 | |||
| 13 | 5 | my $data = <DATA>; | |
| 14 | 5 | $data =~ s/^\s+//; | |
| 15 | |||
| 16 | 5 | my $self = bless({ | |
| 17 | 'index' => Sereal::Decoder::decode_sereal($data), | ||
| 18 | perl_version => '5.028000', | ||
| 19 | } => $class); | ||
| 20 | |||
| 21 | 5 | seek(*DATA, $pos, 0); | |
| 22 | |||
| 23 | 5 | return $self; | |
| 24 | } | ||
| 25 | |||
| 26 | 1 | 1; | |
| 27 | |||
| 28 | __DATA__ | ||