NAME
File::Tasks::Provider - Handles content providers for File::Tasks
DESCRIPTION
The main intent of File::Tasks is to take a set of content and apply it to a filesystem in some way.
The File::Tasks::Provider
class is in change of making sure that File::Tasks can handle a wide variety of different types of content providers.
Mostly at present this just means SCALAR
references, strings, ARRAY
refs and so on. But it should be extendable to handle many different things from which content can be extracted.
METHODS
compatible $source
The compatible
method takes a single argument and checks to see if it can be used as a content source for File::Tasks.
Returns true if it can, or false if not.
content $source
The content
method extracts the content from the source and returns it as a reference to a SCALAR
, or returns undef
on error.
SUPPORT
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Tasks
For other issues, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>, http://ali.as/
COPYRIGHT
Copyright 2005 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.