has url => (
metaclass => 'Labeled',
- isa => 'Str',
- is => 'rw',
- label => "The site's URL",
+ is => 'rw',
+ isa => 'Str',
+ label => "The site's URL",
);
has name => (
- is => 'rw',
+ is => 'rw',
isa => 'Str',
);
has url => (
metaclass => 'Labeled',
- isa => 'Str',
- is => 'rw',
- label => "The site's URL",
+ is => 'rw',
+ isa => 'Str',
+ label => "The site's URL",
);
Ah ha! Now we're using the metaclass. We're adding a new attribute, C<url>, to
Well, back to the code.
has name => (
- is => 'rw',
+ is => 'rw',
isa => 'Str',
);