[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#952542: ITP: libarray-base-perl -- array index offseting



Package: wnpp
Severity: wishlist
Owner: Hideki Yamane <henrich@debian.org>
X-Debbugs-Cc: debian-devel@lists.debian.org

* Package name    : libarray-base-perl
  Version         : 0.0.6
  Upstream Author : Andrew Main (Zefram) <zefram@fysh.org>
* URL             : https://metacpan.org/release/Array-Base
* License         : Artistic or GPL-1+
  Programming Lang: C, Perl
  Description     : array index offseting

 Perl5.30 has an incompatible change "Assigning non-zero to $[ is fatal"
 but we can use this module for it.


 Array::Base implements automatic offsetting of array indices. In normal Perl,
 the first element of an array has index 0, the second element has index 1,
 and so on. This module allows array indexes to start at some other value.
 Most commonly it is used to give the first element of an array the index 1
 (and the second 2, and so on), to imitate the indexing behaviour of FORTRAN
 and many other languages. It is usually considered poor style to do this.
 .
 The array index offset is controlled at compile time, in a lexically-scoped
 manner. Each block of code, therefore, is subject to a fixed offset. It is
 expected that the affected code is written with knowledge of what that offset
 is.


-- 
Regards,

 Hideki Yamane     henrich @ debian.org/iijmio-mail.jp


Reply to: