From: Marius Gavrilescu Date: Tue, 30 Dec 2014 21:45:37 +0000 (+0200) Subject: Make Zeal SYNOPSIS prettier (and wider) X-Git-Tag: 0.000_002~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=6fbbe9022d22110ddb00f884d78b11508cfe874a;p=zeal.git Make Zeal SYNOPSIS prettier (and wider) --- 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