sub STORE { ... } # mandatory if elements writeable
sub STORESIZE { ... } # mandatory if elements can be added/deleted
sub EXISTS { ... } # mandatory if exists() expected to work
sub DELETE { ... } # mandatory if delete() expected to work</PRE>
<PRE>
# optional methods - for efficiency
sub CLEAR { ... }
sub PUSH { ... }
sub POP { ... }
sub SHIFT { ... }
sub UNSHIFT { ... }
sub SPLICE { ... }
sub EXTEND { ... }
sub DESTROY { ... }</PRE>
<PRE>
package NewStdArray;
use Tie::Array;</PRE>
<PRE>
@ISA = ('Tie::StdArray');</PRE>
<PRE>
# all methods provided by default</PRE>
<PRE>
package main;</PRE>
<PRE>
$object = tie @somearray,Tie::NewArray;
$object = tie @somearray,Tie::StdArray;
$object = tie @somearray,Tie::NewStdArray;</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This module provides methods for array-tying classes. See
<A HREF="../../lib/Pod/perltie.html">the perltie manpage</A> for a list of the functions required in order to tie an array
to a package. The basic <STRONG>Tie::Array</STRONG> package provides stub <CODE>DESTROY</CODE>,
and <CODE>EXTEND</CODE> methods that do nothing, stub <CODE>DELETE</CODE> and <CODE>EXISTS</CODE>
methods that <CODE>croak()</CODE> if the <A HREF="../../lib/Pod/perlfunc.html#item_delete"><CODE>delete()</CODE></A> or <A HREF="../../lib/Pod/perlfunc.html#item_exists"><CODE>exists()</CODE></A> builtins are ever called
on the tied array, and implementations of <CODE>PUSH</CODE>, <CODE>POP</CODE>, <CODE>SHIFT</CODE>,
<CODE>UNSHIFT</CODE>, <CODE>SPLICE</CODE> and <CODE>CLEAR</CODE> in terms of basic <CODE>FETCH</CODE>, <CODE>STORE</CODE>,