Questions tagged [moose]

Moose is a postmodern object system for Perl 5 that takes the tedium out of writing object-oriented Perl. It borrows all the best features from Perl 6, CLOS (Lisp), Smalltalk, Java, BETA, OCaml, Ruby and more, while still keeping true to its Perl 5 roots.

Moose is an extension of the Perl 5 object system. The main goal of Moose is to make Perl 5 object-oriented programming (OOP) easier, more consistent and less tedious. With Moose you can think more about what you want to do and less about the mechanics of OOP.

Moose links

See Also

sources: moose.perl.org

609 questions
-1
votes
1 answer

Multiple inheritance from a shared base class in Perl Moose

Let A, B, C, D be Moose classes. Let both B and C inherit from A. Let also D inherit from both B and C. What will happen with "duplicate" properties (properties from A present in both B and C)?
porton
  • 5,214
  • 11
  • 47
  • 95
-1
votes
3 answers

Perl Moose extend child class from Parent by Use statement

I have the following packages and files: Child.pm package Child; use Father; # this should automatically extends Father also has 'name' => (is => 'rw', default => "Harry"); 1; Father.pm package Father; use Moose; sub import { my ($class,…
daliaessam
  • 1,636
  • 2
  • 21
  • 43
-1
votes
1 answer

How to disable help screen on perl for Windows

I got this perl script from http://blog.mekk.waw.pl/archives/47-Scrap_email_addresses_from_GMail_inbox_or_other_folder.html I am able to run it on Windows with ActiveState Perl. Currently when I run it without any parameter, it will display help…
michaels
  • 23
  • 6
-1
votes
2 answers

iterate through perl object array

I have this object in perl $elem = $driver->get_elements("//select[\@name[\"cars\"]//option");
    1  Selenium::Remote::WebElement=HASH(0x600f700)
      'driver' => Selenium::Remote::Driver=HASH(0x5bb9618)
         -> REUSED_ADDRESS
    …
Sunny Patel
  • 535
  • 2
  • 5
  • 13
-1
votes
1 answer

Error from installing Moose locally

I was able to run the following code on my local machine where I have a power of sudo" #!/usr/bin/env perl package Cat { use Moose; has 'name', is => 'ro', isa => 'Str'; } my $test_obj = Cat->new(name => "kitty"); print…
Alby
  • 5,522
  • 7
  • 41
  • 51
-2
votes
1 answer

Perl Moose attribute not force type checking

I an using strawberry perl, Moose 2.0010 In the class: package Cat; use 5.010; use strict; use Moose; has 'name', is => 'ro', isa => 'Str', default => 'Beauty'; #has 'age', is => 'ro'; has 'diet', is => 'rw', default =>…
Weiyan
  • 1,116
  • 3
  • 14
  • 25
-2
votes
3 answers

UML Tool for Moose Perl

Im starting working with Moose/Perl and im searching for an UML Tool to create diagrams and representing the Moose OO System. I already worked with Astah (former Jude) but it is designed for Java OO System. Can someone give recomend other UML tool…
Newton
  • 13
  • 1
-3
votes
1 answer

Moose creating accessors

given a list of accessors is the following possible? If it is possible how would i create builder method for each, i assumed lazy_build attribute would be doing that? please help my @accessors= qw/type duration process/; # used 3 as example but the…
-6
votes
1 answer

what method is created for this? perl

I need an explanation of this one liner. Is this only calling the set() method? Or something else? Thanks for the help! has 'shape' => ( is => 'rw' ); The object is using MooseX::FollowPBP.
Ashley
  • 413
  • 3
  • 8
  • 17
1 2 3
40
41