Grokbase Groups Perl moose
FAQ

Search Discussions

609 discussions - 2,641 posts

  • I have a simple application which uses Moose (example copied from Moose::Manual::MooseX pages) package User; use Moose; use MooseX::StrictConstructor; use namespace::autoclean; has 'name' = (is = ...
    Sam BrainSam Brain
    May 20, 2013 at 9:55 pm
    May 20, 2013 at 11:09 pm
  • Anyone know a bit of meta or other way to delete a MM or disable a MM from firing? package Stuff; with 'OtherStuff'; # run() after 'run' = sub { @_[0]- check }; sub check { # yadda... } __PACKAGE__- ...
    Brian ROONEYBrian ROONEY
    Apr 29, 2013 at 6:07 pm
    Apr 29, 2013 at 6:21 pm
  • In an app we have an authenticate() method that either sets a flag that authentication was successful or throws an exception for failure to authenticate. Then we wanted to add two additional ways to ...
    Bill MoseleyBill Moseley
    Apr 29, 2013 at 5:46 pm
    Apr 29, 2013 at 8:00 pm
  • Begin forwarded message: Date: Tue, 23 Apr 2013 09:50:01 +0100 From: "Toby Inkster" <<span class="m_body_email_addr" title="c42f5f533d5e2032aae76abe2eb3584b" mail@tobyinkster.co.uk</span To: "Shlomi ...
    Shlomi FishShlomi Fish
    Apr 23, 2013 at 12:48 pm
    Apr 25, 2013 at 8:24 am
  • Hi all, as can be seen here: http://www.cpantesters.org/cpan/report/bad7a68b-6c66-1014-acf0-ef5eb1e9163f MooX-late-0.009 breaks https://metacpan.org/release/XML-Grammar-Fiction version 0.12.4 (And ...
    Shlomi FishShlomi Fish
    Apr 23, 2013 at 5:51 am
    Apr 23, 2013 at 5:51 am
  • Hi- I'm new to the Moose mailing list. I've just proposed a new implementation for the Perl Data Language computational engine based on Moo[se] and MOP. I'm relatively new to Moose stuff and some of ...
    Chris MarshallChris Marshall
    Apr 21, 2013 at 10:53 pm
    Apr 21, 2013 at 10:53 pm
  • Hi all, This Saturday (6th April) I'm running a one-day course on "Object Oriented Programming with Perl and Moose" in London. I ran a taster extract from this course at the LPW last November, but ...
    Dave CrossDave Cross
    Apr 2, 2013 at 12:24 pm
    Apr 2, 2013 at 12:24 pm
  • Unfortunately, a few issues in some Moose extensions have been found with the latest release, and since **** this breaks some Catalyst installations **** ...a 2.0801 fix will be coming up shortly (by ...
    Karen EtheridgeKaren Etheridge
    Mar 28, 2013 at 9:17 pm
    Mar 28, 2013 at 10:04 pm
  • Moose-2.0800 has been uploaded. Enjoy! https://metacpan.org/source/ETHER/Moose-2.0800/Changes -- "Society is like a stew. If you don't keep it stirred up you get a lot of scum on the top." - Edward ...
    Karen EtheridgeKaren Etheridge
    Mar 28, 2013 at 3:11 pm
    Mar 30, 2013 at 4:27 pm
  • I was trying to work and create a new Native Type using the existing base libraries in Moose for Native Types ( esp with regard to delegate handles without needing the actual parameter being a ...
    Kent FredricKent Fredric
    Mar 27, 2013 at 10:15 am
    Mar 27, 2013 at 10:15 am
  • Hi, folks. My name is Thiago and I'm a Perl programmer from Brazil. I'm having a very good time using MooseX::Privacy,. Afterall I'm facing a little trouble, when using MooseX::Privacy inside a ...
    ThiagoglaucoThiagoglauco
    Mar 26, 2013 at 11:06 pm
    Mar 26, 2013 at 11:06 pm
  • Hi, I keep getting bitten by this, and I was wondering if this is something that will be solved eventually, or its something that would be nice to solve but it is actually tricky to do, or just that ...
    Pedro MeloPedro Melo
    Mar 1, 2013 at 4:57 pm
    Mar 4, 2013 at 3:29 pm
  • Hi all, Using this program that uses https://metacpan.org/module/XML::GrammarBase::Role::RelaxNG , I am getting this when running it: <<<< shlomif@telaviv1:~$ perl Test.pl rng_schema_basename is ...
    Shlomi FishShlomi Fish
    Feb 21, 2013 at 6:35 am
    Feb 21, 2013 at 6:35 am
  • I'm curious how Moo and Moose play together. I have some classes that make use of Throwable::Error<http://search.cpan.org/dist/Throwable/lib/Throwable/Error.pm , which uses the StackTrace::Auto ...
    Bill MoseleyBill Moseley
    Feb 20, 2013 at 6:36 am
    Feb 21, 2013 at 11:38 am
  • the code, use Class::Load 0.20 'load_class'; use Moose::Role; # VERSION #### Attribute Definitions #### has _log = ( isa = 'Log::Any::Adapter::Base | Log::Any::Adapter::Null', is = 'ro', lazy = 1, ...
    Caleb CushingCaleb Cushing
    Feb 18, 2013 at 11:22 pm
    Feb 19, 2013 at 4:47 am
  • Hi all, I had a problem that I tracked down to BUILD getting run twice. It turned out a subclass was (incorrectly) using "after 'BUILD'". When that happens the BUILD in the base class runs twice. I ...
    Bill MoseleyBill Moseley
    Feb 14, 2013 at 5:58 pm
    Feb 15, 2013 at 3:57 pm
  • Hi there. I'm new at <span class="m_body_email_addr" title="56462eb811e835a5636d735f1c38defd" moose@perl.org</span and just like to know how you use to represent a Moose::Role in a UML diagram? Just ...
    ThiagoglaucoThiagoglauco
    Jan 10, 2013 at 5:50 pm
    Jan 10, 2013 at 7:01 pm
  • Hi! I am new to the list and also still new to Moose. I wonder how exactly to document my Moose classes. I am sure you discussed this before, but I couldn't find much on the list archive. Perhaps ...
    Maurice MengelMaurice Mengel
    Dec 18, 2012 at 4:38 pm
    Dec 18, 2012 at 7:58 pm
  • Is there a way to tell if a moose attribute type is a primary type? For example, I want to tell the difference between an attribute that is a Str and an attribute that is some type of reference.
    Jeff BentonJeff Benton
    Oct 26, 2012 at 9:00 pm
    Oct 26, 2012 at 9:30 pm
  • I need some help with understanding the Class::MOP::Method docs. Can I use that to apply a modifier? Catalyst used to call $c- prepare_body_chunk which made it easy for a plugin or role to track ...
    Bill MoseleyBill Moseley
    Oct 17, 2012 at 5:02 am
    Oct 17, 2012 at 1:17 pm
  • I'm looking for some design ideas, and I'll try and briefly describe it. I suspect this is a Role vs. subclass question. I have a job processing system where a set of one or more jobs are processed ...
    Bill MoseleyBill Moseley
    Oct 8, 2012 at 2:08 pm
    Oct 8, 2012 at 3:11 pm
  • All, I am looking for some assistance choosing a good module name for a class that I would like to build. Essentially it would perform a similar function to Moose::Util 'with_traits' or ...
    Jed LundJed Lund
    Oct 5, 2012 at 7:05 pm
    Oct 8, 2012 at 4:05 pm
  • I wrote a Moose class and the class 'has' an attribute. The attribute also has an 'after' modifier. But when I create an object of the class and supply an initial value for the attribute to the 'new' ...
    Dave HoworthDave Howorth
    Oct 5, 2012 at 2:24 pm
    Oct 8, 2012 at 3:52 pm
  • This code looks wrong to me. I don't think that utf8 line should be there. sub freeze { my ( $self, @args ) = @_; my $json = JSON::Any- objToJson( $self- pack(@args) ); utf8::decode($json) if ...
    Bill MoseleyBill Moseley
    Oct 1, 2012 at 9:14 pm
    Mar 11, 2013 at 5:06 pm
  • Hi, I wonder if coercion works on method arguments when using MooseX::Declare? I tried and could not make it work, maybe I expect too much. use MooseX::Declare; class Foo { use ...
    ShtilShtil
    Oct 1, 2012 at 6:33 pm
    Oct 6, 2012 at 2:31 am
  • I've been trying out Test::Sweet<http://search.cpan.org/dist/Test-Sweet/lib/Test/Sweet.pm and need a little help with the syntax. I'm not using MooseX::Declare so that may be part of my problem. I ...
    Bill MoseleyBill Moseley
    Oct 1, 2012 at 1:12 am
    Oct 1, 2012 at 1:12 am
  • I cannot make this work: use MooseX::Declare; class Foo { use Moose::Util::TypeConstraints; subtype 'NewType' = as 'Object'; method bar (NewType $arg) { } } I get the following error: 'NewType' could ...
    ShtilShtil
    Sep 29, 2012 at 7:47 pm
    Sep 29, 2012 at 7:59 pm
  • Need some ideas how to proceed here: I ended up with a minor problem today where I had to release a new version of a module with a very minor bug fix. Instances of that class get serialized and ...
    Bill MoseleyBill Moseley
    Sep 26, 2012 at 9:08 pm
    Sep 27, 2012 at 1:01 am
  • Hi, From the base.pm documentation<http://perldoc.perl.org/base.html#DESCRIPTION : Unless you are using the fields pragma, consider this module discouraged in favor of the lighter-weight parent ...
    Olivier MenguéOlivier Mengué
    Sep 21, 2012 at 9:38 am
    Jan 24, 2013 at 11:43 pm
  • Looking for a bit of guidance on design. I have a growing number of classes that require a DBIx::Class "schema" attribute. These classe are used as Models in Catalyst (where they get the Catalyst ...
    Bill MoseleyBill Moseley
    Sep 4, 2012 at 6:07 pm
    Sep 4, 2012 at 9:17 pm
  • Hi, What is the expected behaviour with regards to method modifiers and sub classes? I was expecting that all "before" sub routines would be run before any around subs. In current tests, I am finding ...
    Alex HoleAlex Hole
    Sep 4, 2012 at 3:51 pm
    Sep 4, 2012 at 4:03 pm
  • Hi all, I've downloaded Moose 2.0603 and have received the following test errors: https://gist.github.com/3618458 All of these errors appear related to metaclasses. I have also tried to install ...
    Curtis "Ovid" PoeCurtis "Ovid" Poe
    Sep 4, 2012 at 8:27 am
    Sep 6, 2012 at 7:09 am
  • Hi, MoooseX::Has::Options (https://metacpan.org/module/MooseX::Has::Options) adds a different syntax for declaring Moose attribute options, i.e. instead of: has 'foo', is = 'ro', isa = 'Str', ...
    Peter ShangovPeter Shangov
    Aug 28, 2012 at 5:19 pm
    Aug 28, 2012 at 7:32 pm
  • Hi All, I have a module on CPAN that I want to add a Moose version to. What is the naming convention for this? The current module is DateTimeX::Fiscal::Fiscal5253. My gut tells me that the ...
    Jim BaconJim Bacon
    Aug 5, 2012 at 8:28 am
    Aug 5, 2012 at 4:15 pm
  • Hi all, It appears that if I create an object with $metaclass- new_object(), BUILDARGS will not be executed, e.g.: { package Foo; use Moose 2.0603; sub BUILDARGS { warn "Building args"; return {} } } ...
    Peter ShangovPeter Shangov
    Jul 17, 2012 at 11:08 am
    Jul 17, 2012 at 2:47 pm
  • Hi Everyone, Got a new Advanced Moose keynote online at: https://speakerdeck.com/u/ynonperek/p/advanced-perl-moose (licensed CC-NC) This is for a workshop I'm teaching - the goal is to expose ...
    Ynon perekYnon perek
    Jul 7, 2012 at 6:41 am
    Jul 7, 2012 at 6:41 am
  • After MooseX-Types 0.35 was released, I started getting failure reports for a number of my modules that use it. This turned out to be caused by this issue: use Moose::Util::TypeConstraints; # { ...
    Christopher J. MadsenChristopher J. Madsen
    Jul 4, 2012 at 4:16 pm
    Jul 5, 2012 at 4:19 pm
  • Hei, #moose! :) Oslo Perl Mongers are organizing a hackathon we're calling "Moving to Moose" - We'd love to see you there! :) Details about this hackathon, including dates, travel information, the ...
    Salve J NilsenSalve J Nilsen
    May 31, 2012 at 2:53 pm
    May 31, 2012 at 2:53 pm
  • Is there any way to I can take control of MX::TD::A such that I can decide when to start the dirty tracking? Specifically, below, the attributes in Foo::Types::Parameter are populated by reading in a ...
    Brian ROONEYBrian ROONEY
    May 16, 2012 at 11:11 am
    May 16, 2012 at 10:47 pm
  • Hi, I got an exception when using 'after' this way. Here is my Moose class : package Myclass; use Moose; extends 'SuperClass'; with 'MyRole'; has 'file' = (is = 'rw', isa = 'Str', required = 1); has ...
    Emmanuel QuevillonEmmanuel Quevillon
    May 11, 2012 at 1:42 pm
    May 15, 2012 at 8:01 am
  • We're adding a single Moose chapter to the next edition of Intermediate Perl. Our goal is to show people that it exists and redo our vanilla OO examples in Moose. We certainly recommend the Moose ...
    Brian d foyBrian d foy
    May 3, 2012 at 5:28 pm
    May 5, 2012 at 2:36 am
  • I'm implementing an attribute trait that needs to wrap any existing default or builder so it can provide a value to the attribute. Wrapping a default, either scalar or sub, is easily done in an ...
    Maddy, NoelMaddy, Noel
    Apr 27, 2012 at 3:24 pm
    Apr 27, 2012 at 8:26 pm
  • Moose 2.0502 is out on CPAN now as a trial release - the changelog is available at https://metacpan.org/source/DOY/Moose-2.0502-TRIAL/Changes. Testing against CPAN has shown very few issues with it, ...
    Jesse LuehrsJesse Luehrs
    Apr 26, 2012 at 1:22 am
    Apr 26, 2012 at 1:22 am
  • MooseX-Getopt-0.42-TRIAL contains a change where requesting usage information via --help, --usage or --? will now print to stdout and then exit with status 0, rather than dying. Since there is a ...
    Karen EtheridgeKaren Etheridge
    Apr 15, 2012 at 4:17 pm
    Apr 15, 2012 at 4:17 pm
  • http://stackoverflow.com/questions/10051181/how-can-i-provide-an-alternate-init-arg-for-an-attribute-in-moose I'm trying to add an alternate name/init_arg for some attributes in my objects ...
    Caleb CushingCaleb Cushing
    Apr 10, 2012 at 8:47 pm
    Apr 11, 2012 at 4:52 pm
  • We have an in-house storage "backend" we use for a number of purposes. We can pretend it's something like memcached that is configured with host names. I have a role for working with this backend ...
    Bill MoseleyBill Moseley
    Apr 9, 2012 at 9:05 am
    Apr 12, 2012 at 8:43 am
  • Hi all, I'm wondering if this is a known bug or a misunderstanding on my part (I assume the latter): use 5.10.0; { package Role::A; use Moose::Role; with 'Role::C'; } { package Role::B; use ...
    Curtis "Ovid" PoeCurtis "Ovid" Poe
    Apr 8, 2012 at 7:31 pm
    Apr 9, 2012 at 2:04 pm
  • Hi all, I'm writing a Perl book and I'm on an introductory Moose chapter. I'm including the following list of types from Moose::Util::TypeConstraints: Any Item Bool Maybe[`a] Undef Defined Value Str ...
    Curtis "Ovid" PoeCurtis "Ovid" Poe
    Mar 22, 2012 at 9:08 pm
    Mar 22, 2012 at 10:14 pm
  • Hello, I've discovered something that I'm not sure is a bug or not. It has to do with the interaction between augment/override and before/after/around. The following code crashes with the error ...
    Fitz ElliottFitz Elliott
    Mar 21, 2012 at 6:51 pm
    Mar 21, 2012 at 6:51 pm
  • what's up with this? 0.08 breaks everywhere -- Caleb Cushing http://xenoterracide.com
    Caleb CushingCaleb Cushing
    Mar 16, 2012 at 5:26 pm
    Mar 20, 2012 at 12:41 pm
Group Navigation
period‹ prev | Latest | first ›

Top users

Stevan Little: 322 posts Jesse Luehrs: 164 posts Dave Rolsky: 119 posts Hans Dieter Pearcey: 119 posts Chris Prather: 89 posts Karen Etheridge: 65 posts Chris: 64 posts Curtis "Ovid" Poe: 59 posts Buddy Burden: 44 posts Sartak: 44 posts Darren Duncan: 41 posts Bill Moseley: 39 posts Yuval Kogman: 39 posts John Napiorkowski: 35 posts Kate Yoak: 33 posts Nick Perez: 32 posts Evan Carroll: 30 posts Christopher Brown: 29 posts Shlomi Fish: 27 posts Tomas Doran: 25 posts
show more