File::Find::Rule::Type - rule to match on mime types
use File::Find::Rule::Type; my @images = find( file => type => 'image/*', in => '.' );
File::Find::Rule::Type allows you to build Find::File::Rule searches that are limited by MIME type, using the File::Type module. Text::Glob is used so that the pattern may be a globbing pattern.
Match only things with the mime types specified by @patterns. The specification can be a glob pattern, as provided by the Text::Glob manpage.
Paul Mison <cpan@husk.org>. Shamelessly based on Richard Clamp's the File::Find::Rule::MMagic manpage, itself an idea of Mark Fowler.
Copyright (C) 2003 Paul Mison. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
the File::Find::Rule manpage, the Text::Glob manpage, the File::Type manpage, the Find::File::Rule::MMagic manpage