Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Tie::OffsetArray 0.01

    Download button

    No screenshots available
    Downloads: 310  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John Porter | More programs
    Perl Artistic License / FREE
    August 10th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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[0] = 'x'; # assign to $b[1];

    tied(@a)->array->[0] = 'y'; # assign to $b[0].

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    tie arrays | index offset | Perl module | tie | array | offset

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM