Shlomi Fish > File-Find-Object-Rule-MMagic-v0.0.2 > File::Find::Object::Rule::MMagic

Download:
File-Find-Object-Rule-MMagic-v0.0.2.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v0.0.2   Source   Latest Release: File-Find-Object-Rule-MMagic-v0.0.4

NAME ^

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

SYNOPSIS ^

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

DESCRIPTION ^

File::Find::Object::Rule::MMagic interfaces File::MMagic to File::Find::Object::Rule enabling you to find files based upon their mime type. Text::Glob is used so that the pattern 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.

Adapted to File::Find::Object::Rule::MMagic by Shlomi Fish. All rights disclaimed.

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::Object::Rule, Text::Glob, File::MMagic

Originally derived from File::Find::Rule::MMagic

syntax highlighting: