App::Grok::Resource::File - Standard file resource for grok
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');
This resource finds arbitrary documentation on the filesystem.
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.
$PERL6LIB
file_locate
Returns the filename given if it is a real file. Not very useful.
To install App::Grok, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Grok
CPAN shell
perl -MCPAN -e shell install App::Grok
For more information on module installation, please visit the detailed CPAN module installation guide.