| 1 | 8 | ▶ | use strict; use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 8 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | Term::ReadLine::Perl5::Tie | ||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | Used by L<Term::ReadLine::Perl> to bind | ||
| 11 | I<%Term::ReadLine::Perl5::attribs> to their corresponding | ||
| 12 | I<%Term::ReadLine::readline> value in reading and setting those | ||
| 13 | attributes. | ||
| 14 | |||
| 15 | =head1 SEE ALSO | ||
| 16 | |||
| 17 | L<Term::ReadLine::Perl5> | ||
| 18 | |||
| 19 | =cut | ||
| 20 | package Term::ReadLine::Perl5::Tie; | ||
| 21 | |||
| 22 | # version might not be below other places in this routine | ||
| 23 | # no critic | ||
| 24 | 8 | our $VERSION = '1.42'; | |
| 25 | |||
| 26 | 8 | ▶ | sub TIEHASH { bless {} } |
|
Subroutine
TIEHASH: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | sub STORE { | ||
| 29 | 6 | ▶ | my ($self, $name) = (shift, shift); |
|
Subroutine
STORE: called CC=1 SCAR=0.0
| |||
| 30 | 8 | ▶ | no strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 8 | ▶ | no warnings 'once'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | 6 | $ {'Term::ReadLine::Perl5::readline::rl_' . $name} = shift; | |
| 33 | } | ||
| 34 | |||
| 35 | sub FETCH { | ||
| 36 | 4 | ▶ | my ($self, $name) = (shift, shift); |
|
Subroutine
FETCH: called CC=1 SCAR=0.0
| |||
| 37 | 8 | ▶ | no strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | 4 | $ {'Term::ReadLine::Perl5::readline::rl_' . $name}; | |
| 39 | } | ||
| 40 | |||
| 41 | 8 | 1; | |