Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Array::RefElem

Name Array::RefElem
Version 1.00
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Array/RefElem.pm
Is Core No
Search CPAN for this module Array::RefElem
Documentation Array::RefElem
Module Details Array::RefElem

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 $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.


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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026