Subject: | can_handle() should also return application/x-rar-compressed |
Archive::Any allows users to explicitly set archive type instead of using File::MMagic to guess it.
It uses MIME::Types to find the full MIME type name by the suffix user has provided. For the 'rar'
suffix MIME::Types returns 'application/x-rar-compressed', which is not listed in your module.
That leads to this:
$ perl -MArchive::Any -E'say for Archive::Any->new("some.file", "rar")->files'
No handler available for type 'application/x-rar-compressed' at
/home/ksurent/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Archive/Any.pm line
179, <DATA> line 1000.
Can't call method "files" on an undefined value at -e line 1, <DATA> line 1000.