Subject: | broken ->mime_type() method |
The ->mime_type() method always returns undef becase in the constructor
we see:
return bless {
file => $file,
handler => $handler,
type => $mime_type, # <-- key's name is 'type'
}, $class;
But in the method's implementation we see:
sub mime_type {
my $self = shift;
return $self->{mime_type}; # <-- now it's 'mime_type' but should be
'type'
}
Cheers