Tie::OffsetArray

Tie::OffsetArray can tie one array to another, with index offset.
Download

Tie::OffsetArray Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John Porter
  • Publisher web site:
  • http://search.cpan.org/~jdporter/Crypt-RandPasswd-0.02/lib/Crypt/RandPasswd.pm

Tie::OffsetArray Tags


Tie::OffsetArray Description

Tie::OffsetArray can tie one array to another, with index offset. Tie::OffsetArray can tie one array to another, with index offset.SYNOPSIS use Tie::OffsetArray; tie @a, 'Tie::OffsetArray', 1, @b; # offset=1; use given array. tie @c, 'Tie::OffsetArray', 2; # use anonymous array. $a = 'x'; # assign to $b; tied(@a)->array-> = 'y'; # assign to $b.When tied to this class, an array's behavior is completely normal. For its internal storage, it uses another array, either one supplied by the caller, or a new anonymous one. Accesses to the tied array are mapped down to the storage array by offsetting the index by some constant amount.A special method on the tied object returns a reference to the storage array, so that the elements below the offset can be accessed. This is particularly useful if the storage array was not supplied by the caller. Requirements: · Perl


Tie::OffsetArray Related Software