Help for this page

Select Code to Download


  1. or download this
    {
      use strict;
    ...
      has 'things' => (is => 'rw', isa => 'ArrayRef');
    }
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    @temp = @{$cup_holder->things()};
    is (scalar @temp, 4, "there should be four things in the cupboard");
    is ($thing, "red", "the cup should be red");