Richard Clamp > File-Find-Rule-MMagic-0.02 > File::Find::Rule::MMagic

Download:
File-Find-Rule-MMagic-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

File::Find::Rule::MMagic - rule to match on mime types

SYNOPSIS ^

 use File::Find::Rule::MMagic;
 my @images = find( file => magic => 'image/*', in => '.' );

DESCRIPTION ^

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.

->magic( @patterns )

Match only things with the mime types specified by @patterns. The specification can be a glob pattern, as provided by Text::Glob.

AUTHOR ^

Richard Clamp <richardc@unixbeard.net>, from an idea by Mark Fowler.

COPYRIGHT ^

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.

SEE ALSO ^

File::Find::Rule, Text::Glob, File::MMagic

syntax highlighting: