NAME
Array::RefElem - Set up array elements as aliases
SYNOPSIS
use Array::RefElem qw(av_store av_push hv_store);av_store(@a, 1, $a);av_push(@a, $a);hv_store(%h, $key, $a);
DESCRIPTION
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:
- av_store(@array, $index, $value)
-
Stores
$valuein@arrayat the specified$index. After executing this call,$array[$index] and$valuedenote the same thing.
- av_push(@array, $value)
-
Pushes
$valueonto the@array. After executing this call,$array[-1] and$valuedenote the same thing.
- hv_store(%hash, $key, $value);
-
Stores
$valuein the%hashwith the given$key. After executing this call,$hash{$key} and$valuedenote the same thing.
SEE ALSO
perlguts
COPYRIGHT
Copyright 2000 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.