Zeal::Docset - Class representing a Dash/Zeal docset


  use Zeal::Docset;
  my $ds = Zeal::Docset->new('/home/mgv/docsets/Perl.docset');
  say $ds->$path;  # /home/mgv/docsets/Perl.docset
  say $ds->name;   # Perl
  say $ds->id;     # perl
  say $ds->family; # perl

  # In SQL LIKE, % is .* and _ is .
  my @matches = $ds->query('perlopen%'); # finds perlopenbsd and perlopentut
  my $doc = $ds->query('perlsec'); # A Zeal::Document object for perlsec
  my $html = $ds->get('perls_c'); # HTML documentation of perlsec
  my @docs = $ds->list; # all documents


Dash is an offline API documentation browser. Zeal::Docset is a class representing a Dash/Zeal docset.

Available methods:


Create a Zeal::Docset object from a given docset. $path should be the path to a something.docset directory.


The path to the docset folder.


A hashref with the contents of Info.plist.


A DBI database handle to the docSet.dsidx index.


The name of this docset. Equivalent to $ds->plist->{CFBundleName}


The identifier of this docset. Equivalent to $ds->plist->{CFBundleIdentifier}


The family this docset belongs to. Dash uses this as the keyword for restricting searches to a particular family of docsets. Equivalent to $ds->plist->{DocSetPlatformFamily}


Internal method for fetching the HTML content of a document. $path is either the path to the document relative to $ds->path or a HTTP URL.


In list context, return all documents (Zeal::Document instances) matching $cond. In scalar context, return one such document. $cond is a SQL LIKE condition.


The HTML content of one document that matches $cond. $cond is a SQL LIKE condition.

This method is shorthand for $ds->query($cond)->fetch.


The list of all documents (Zeal::Document instances) in this docset.




Marius Gavrilescu, <>


Copyright (C) 2014-2015 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.1 or, at your option, any later version of Perl 5 you may have available.