X-Git-Url: http://git.ieval.ro/?p=zeal.git;a=blobdiff_plain;f=lib%2FZeal.pm;fp=lib%2FZeal.pm;h=1fd78bdaa12abd4a7e7b89625cfa2ad06f9fde2d;hp=8fab14a733d2c7c25f16e8692196cdc64ed5d9fa;hb=6fbbe9022d22110ddb00f884d78b11508cfe874a;hpb=0469af4b76d7a33b0de2fcc696928b22a53099b9 diff --git a/lib/Zeal.pm b/lib/Zeal.pm index 8fab14a..1fd78bd 100644 --- a/lib/Zeal.pm +++ b/lib/Zeal.pm @@ -64,16 +64,12 @@ Zeal - Read and query Dash/Zeal docsets use Zeal; my $zeal = Zeal->new("/home/mgv/docsets/:/home/mgv/something.docset"); - # Add another docset - $zeal->add('/home/mgv/somethingelse.docset'); - # Add a directory containing docsets - $zeal->add('/home/mgv/moredocsets/'); - # Documentation for 'length' in all docsets - my $doc = $zeal->query('length'); - # Documentation for all Test:: perl modules - my @docs = $zeal->query('Test::%', 'perl'); - # Alternative syntax - @docs = $zeal->query('perl:Test::%); + $zeal->add('/home/mgv/somethingelse.docset'); # Add another docset + $zeal->add('/home/mgv/moredocsets/'); # Add a directory containing docsets + + my $doc = $zeal->query('length'); # Documentation for 'length' in all docsets + my @docs = $zeal->query('Test::%', 'perl'); # Documentation for all Test:: perl modules + @docs = $zeal->query('perl:Test::%); # Alternative syntax =head1 DESCRIPTION