Make Zeal SYNOPSIS prettier (and wider)
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 30 Dec 2014 21:45:37 +0000 (23:45 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 30 Dec 2014 21:45:37 +0000 (23:45 +0200)
lib/Zeal.pm

index 8fab14a733d2c7c25f16e8692196cdc64ed5d9fa..1fd78bdaa12abd4a7e7b89625cfa2ad06f9fde2d 100644 (file)
@@ -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
 
This page took 0.010626 seconds and 4 git commands to generate.