man-pages/man3/LWP::MemberMixin.3pm.html
2021-03-31 01:06:50 +01:00

86 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of LWP::MemberMixin</TITLE>
</HEAD><BODY>
<H1>LWP::MemberMixin</H1>
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2019-11-29<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
LWP::MemberMixin - Member access mixin class
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
package Foo;
use base qw(LWP::MemberMixin);
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
A mixin class to get methods that provide easy access to member
variables in the <TT>%$self</TT>.
Ideally there should be better Perl language support for this.
<A NAME="lbAE">&nbsp;</A>
<H2>METHODS</H2>
There is only one method provided:
<A NAME="lbAF">&nbsp;</A>
<H3>_elem</H3>
<PRE>
_elem($elem [, $val])
</PRE>
<P>
Internal method to get/set the value of member variable
<TT>$elem</TT>. If <TT>$val</TT> 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.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">METHODS</A><DD>
<DL>
<DT id="5"><A HREF="#lbAF">_elem</A><DD>
</DL>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:47 GMT, March 31, 2021
</BODY>
</HTML>