File::Find::Rule::MMagic - rule to match on mime types
my @images = find( file => magic => 'image/*', in => '.' );
File::Find::Rule::MMagic interfaces File::MMagic to File::Find::Rule enabling you to find files based upon their mime type. Text::Glob is used so that the patter may be a simple globbing pattern.
Match only things with the mime types specified by @patterns. The specification can be a glob pattern, as provided by Text::Glob.
Richard Clamp <firstname.lastname@example.org>, from an idea by Mark Fowler.
Copyright (C) 2002 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
File::Find::Rule, Text::Glob, File::MMagic
To install File::Find::Rule::MMagic, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.