Array::RefElem(3pm)

Array::RefElem3pm

Set up array elements as aliases

Usage

 use Array::RefElem qw(av_store av_push hv_store);
 av_store(@a, 1, $a);
 av_push(@a, $a);
 hv_store(%h, $key, $a);

Overview

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 $value in @array at the specified $index. After executing this call, $array[$index] and $value denote the same thing.

av_push(@array, $value)

Pushes $value onto the @array. After executing this call, $array[-1] and $value denote the same thing.

hv_store(%hash, $key, $value);

Stores $value in the %hash with the given $key. After executing this call, $hash{$key} and $value denote the same thing.

Releases

10 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0–6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

From libarray-refelem-perl 1.00+ds-3+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.