The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.