PHP 8.2.30
Preview: MemberMixin.pm Size: 877 B
/proc/thread-self/root/proc/self/root/proc/thread-self/root/usr/local/share/perl5/LWP/MemberMixin.pm

package LWP::MemberMixin;

our $VERSION = '6.76';

sub _elem {
    my $self = shift;
    my $elem = shift;
    my $old  = $self->{$elem};
    $self->{$elem} = shift if @_;
    return $old;
}

1;

__END__

=pod

=head1 NAME

LWP::MemberMixin - Member access mixin class

=head1 SYNOPSIS

 package Foo;
 use parent qw(LWP::MemberMixin);

=head1 DESCRIPTION

A mixin class to get methods that provide easy access to member
variables in the C<%$self>.
Ideally there should be better Perl language support for this.

=head1 METHODS

There is only one method provided:

=head2 _elem

    _elem($elem [, $val])

Internal method to get/set the value of member variable
C<$elem>. If C<$val> is present it is used as the new value
for the member variable.  If it is not present the current
value is not touched. In both cases the previous value of
the member variable is returned.

=cut

Directory Contents

Dirs: 4 × Files: 10

Name Size Perms Modified Actions
Authen DIR
- drwxr-xr-x 2024-03-03 22:17:33
Edit Download
Debug DIR
- drwxr-xr-x 2024-03-03 22:17:33
Edit Download
Protocol DIR
- drwxr-xr-x 2024-03-21 11:50:52
Edit Download
UserAgent DIR
- drwxr-xr-x 2024-03-21 11:50:52
Edit Download
8.55 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download
2.85 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download
67 B lr--r--r-- 2024-01-25 18:31:29
Edit Download
48.65 KB lr--r--r-- 2019-03-20 13:01:17
Edit Download
6.75 KB lr--r--r-- 2019-03-20 13:01:17
Edit Download
877 B lr--r--r-- 2024-01-25 18:31:29
Edit Download
9.37 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download
7.71 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download
6.52 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download
73.49 KB lr--r--r-- 2024-01-25 18:31:29
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).