| Array-RefElem documentation | Contained in the Array-RefElem distribution. |
Array::RefElem - Set up array elements as aliases
use Array::RefElem qw(av_store av_push hv_store); av_store(@a, 1, $a); av_push(@a, $a); hv_store(%h, $key, $a);
This module gives direct access to some of the internal Perl routines that let you store things in arrays and hashes. The following functions are available:
Stores $value in @array at the specified $index. After executing this call, $array[$index] and $value denote the same thing.
Pushes $value onto the @array. After executing this call, $array[-1] and $value denote the same thing.
Stores $value in the %hash with the given $key. After executing this call, $hash{$key} and $value denote the same thing.
perlguts
Copyright 2000 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Array-RefElem documentation | Contained in the Array-RefElem distribution. |
package Array::RefElem; use strict; use vars qw(@ISA @EXPORT_OK $VERSION); require Exporter; require DynaLoader; @ISA = qw(Exporter DynaLoader); @EXPORT_OK = qw(av_store av_push hv_store); $VERSION = '1.00'; Array::RefElem->bootstrap($VERSION); 1; __END__