Subject: | Unnecessary use of ->meta considered harmful |
This is all wrong;
my $cfmeta = $class->meta->get_attribute('configfile');
$configfile = $cfmeta->default if $cfmeta->has_default;
Really. What is the point of that over something like;
$configfile = eval { $class->configfile };
In my example code, it is actually WRONG because I want to specify an
array ref as the default. Going through ->meta for things like this is
like using $object->{attribute}