1LWP::MemberMixin(3) User Contributed Perl Documentation LWP::MemberMixin(3)
2
3
4
6 LWP::MemberMixin - Member access mixin class
7
9 package Foo;
10 use parent qw(LWP::MemberMixin);
11
13 A mixin class to get methods that provide easy access to member
14 variables in the %$self. Ideally there should be better Perl language
15 support for this.
16
18 There is only one method provided:
19
20 _elem
21 _elem($elem [, $val])
22
23 Internal method to get/set the value of member variable $elem. If $val
24 is present it is used as the new value for the member variable. If it
25 is not present the current value is not touched. In both cases the
26 previous value of the member variable is returned.
27
28
29
30perl v5.34.1 2022-06-16 LWP::MemberMixin(3)