Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    push @{$struct{pointers}}, "hello world", "the end is neigh", "this is
    + the end";
    print "$_\n" for @{$struct{pointers}};
    print "There are ", scalar @{$struct{pointers}}, " pointers allocated.
    +\n";
    
  2. or download this
    Data is 1.
    There are 0 pointers allocated.
    ...
    the end is neigh
    this is the end
    There are 3 pointers allocated.