Hi, I am a newbie using Moose and find it very helpful.
However, reading the Moose Manual, I don't know how to create a sub that is 'ro' and return a default value. I wrote something like this : has 'so_type' => ( is => 'ro', isa => 'Str', default => "SO:0000412", ); but when I call $self->so_type() it returns nothing! Am I doing something wrong? By the way, I use a self coded 'new' method to create my object. Would it be the problem? Thanks for any clue Regards Emmanuel -- ------------------------- Emmanuel Quevillon Biological Software and Databases Group Institut Pasteur +33 1 44 38 95 98 tuco at_ pasteur dot fr -------------------------