Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Archive-Any CPAN distribution.

Report information
The Basics
Id: 33421
Status: resolved
Priority: 0/
Queue: Archive-Any

People
Owner: Nobody in particular
Requestors: zoffix [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.093
Fixed in: (no value)



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
From: hydo [...] mac.com
On Mon Feb 18 22:30:57 2008, ZOFFIX wrote: Show quoted text
> 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
This has been fixed in 0.932