App::Grok::Resource::Spec - Perl 6 specification resource for grok
use strict; use warnings; use App::Grok::Resource::Spec qw<:ALL>; # list of all Synopsis, Exegeses, etc my @index = spec_index(); # get the contents of Synopsis 02 my $pod = spec_fetch('s02'); # filename containing S02 my $file = spec_locate('s02');
This module the locates Apocalypses, Exegeses, Synopsis and magazine articles distributed with Perl6::Doc.
It also includes user documentation like perlintro and perlsyn.
spec_update
Takes no arguments. Downloads the latest specifications (Synopses) into grok's data dir.
spec_index
Doesn't take any arguments. Returns a list of all documents known to this resource.
spec_fetch
Takes the name of a document as an argument. It is case-insensitive and you only need to specify the first three characters (though more are allowed), e.g. spec_fetch('s02'). Returns the Pod text of the document.
spec_fetch('s02')
spec_locate
Takes the same argument as spec_fetch. Returns the filename corresponding to the given document.
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.