|TIEARRAY classname, LIST||The class method is invoked by the command tie @array, classname. Associates an array instance with the specified class. LIST would represent additional arguments (along the lines of AnyDBM_File and compatriots) needed to complete the association. The method should return an object of a class which provides the methods below.|
|STORE this, index, value||Store datum value into index for the tied array associated with object this. If this makes the array larger then classs mapping of undef should be returned for new positions.|
|FETCH this, index||Retrieve the datum in index for the tied array associated with object this.|
|FETCHSIZE this||Returns the total number of items in the tied array associated with object this. (Equivalent to scalar(@array)).|
|STORESIZE this, count||Sets the total number of items in the tied array associated with object this to be count. If this makes the array larger then classs mapping of undef should be returned for new positions. If the array becomes smaller then entries beyond count should be deleted.|
|EXTEND this, count||Informative call that array is likely to grow to have count entries. Can be used to optimize allocation. This method need do nothing.|
|EXISTS this, key||Verify that the element at index key exists in the tied array this.|
|DELETE this, key||Delete the element at index key from the tied array this.|
|CLEAR this||Clear (remove, delete, ...) all values from the tied array associated with object this.|
|DESTROY this||Normal object destructor method.|
|PUSH this, LIST||Append elements of LIST to the array.|
|POP this||Remove last element of the array and return it.|
|SHIFT this||Remove the first element of the array (shifting other elements down) and return it.|
|UNSHIFT this, LIST||Insert LIST elements at the beginning of the array, moving existing elements up to make room.|
|SPLICE this, offset, length, LIST||
Perform the equivalent of splice on the array.
offset is optional and defaults to zero, negative values count back from the end of the array.
length is optional and defaults to rest of the array.
LIST may be empty.
Returns a list of the original length elements at offset.
There is no support at present for tied @ISA. There is a potential conflict between magic entries needed to notice setting of @ISA, and those needed to implement tie.
Nick Ing-Simmons <email@example.com>
|perl v5.22.1||TIE::ARRAY (3)||2015-10-17|