Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Using ArrayRef data members in Moose

by dmorgo (Pilgrim)
on Jul 01, 2008 at 21:31 UTC ( [id://695034]=perlquestion: print w/replies, xml ) Need Help??

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");
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://695034]
Approved by psini
Front-paged by almut
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found