From 6fbbe9022d22110ddb00f884d78b11508cfe874a Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 30 Dec 2014 23:45:37 +0200 Subject: [PATCH] Make Zeal SYNOPSIS prettier (and wider) --- lib/Zeal.pm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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 -- 2.39.2