Hinrik Örn Sigurðsson > grok > App::Grok::Resource::File

Download:
grok-0.26.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.26   Source  

NAME ^

App::Grok::Resource::File - Standard file resource for grok

SYNOPSIS ^

 use strict;
 use warnings;
 use App::Grok::Resource::File qw<:ALL>;

 # this will return everything in $PERL6LIB sometime in the future
 my @index = file_index();

 # get a filehandle to the thing we want
 my $handle = file_fetch('perlintro');

DESCRIPTION ^

This resource finds arbitrary documentation on the filesystem.

FUNCTIONS ^

file_index

This method doesn't return anything useful yet.

file_fetch

Takes a module name, program name, or Pod page name. Since the details of $PERL6LIB are still fuzzy, it currently just returns the contents of the supplied file.

file_locate

Returns the filename given if it is a real file. Not very useful.

syntax highlighting: