Search Discussions
-
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 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 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 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 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 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 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 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 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 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 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 ...
Thiagoglauco
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 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 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 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 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 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 ...
Thiagoglauco
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 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 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 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 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 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 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 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 ...
Shtil
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 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 ...
Shtil
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 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é
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 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 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" 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 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 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 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 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. 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 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 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 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 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, 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 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 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 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 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" 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" 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 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 Cushing
Mar 16, 2012 at 5:26 pm
Mar 20, 2012 at 12:41 pm
Group Overview
| group | moose
|
| categories | perl |
| discussions | 609 |
| posts | 2,641 |
| users | 299 |
| website | iinteractive.com... |
Top users
Archives
- May 2013 (4)
- April 2013 (12)
- March 2013 (43)
- February 2013 (22)
- January 2013 (6)
- December 2012 (6)
- October 2012 (44)
- September 2012 (19)
- August 2012 (5)
- July 2012 (6)
- May 2012 (15)
- April 2012 (17)
- March 2012 (19)
- February 2012 (29)
- January 2012 (40)
- December 2011 (44)
- November 2011 (13)
- October 2011 (33)
- September 2011 (33)
- August 2011 (17)
- July 2011 (23)
- June 2011 (42)
- May 2011 (6)
- April 2011 (13)
- March 2011 (28)
- February 2011 (15)
- January 2011 (53)
- December 2010 (32)
- November 2010 (19)
- October 2010 (91)
- September 2010 (41)
- August 2010 (14)
- July 2010 (65)
- June 2010 (109)
- May 2010 (103)
- April 2010 (95)
- March 2010 (57)
- February 2010 (54)
- January 2010 (63)
- December 2009 (34)
- November 2009 (117)
- October 2009 (40)
- September 2009 (88)
- August 2009 (62)
- July 2009 (77)
- June 2009 (54)
- May 2009 (51)
- April 2009 (130)
- March 2009 (44)
- February 2009 (67)
- January 2009 (80)
- December 2008 (30)
- November 2008 (24)
- October 2008 (31)
- September 2008 (57)
- August 2008 (16)
- July 2008 (41)
- June 2008 (35)
- May 2008 (38)
- April 2008 (42)
- March 2008 (17)
- February 2008 (32)
- January 2008 (18)
- August 2007 (2)
- July 2007 (2)
- June 2007 (9)
- May 2007 (5)
- November 2006 (35)
- September 2006 (3)
- August 2006 (9)
