Filewatcher File Search File Search
Content Search
» » » » »


Perl module to read fortune (strfile) databases

The fortune program is a small but important part of the Unix culture, and this module aims to provide support for its "fortune cookie" databases to Perl programmers.

For efficiency, all versions of fortune rely on a binary header consisting mainly of offsets into the fortune file proper.

Modern versions of fortune keep this header in a separate file, and this is the style adopted by the Fortune module; the older style of munging the header and data into one large "compiled" file is not (currently) supported.

Package version:0.2-7


                                version 0.2
                             26 February 2000
                       Greg Ward <>

Copyright (c) 1999-2000 Gregory P. Ward. All rights reserved.  This is
free software; you can redistribute it and/or modify it under the same
terms as Perl itself.

This module provides an interface to fortune cook


Fortune(3pm)     User Contributed Perl Documentation    Fortune(3pm)

       Fortune - read and write fortune (strfile) databases

          # input
          $ffile = new Fortune ($base_filename);
          $ffile->read_header ();
          $num_fortunes = $ffile->num_fortunes ();
          $fortune = $ffile->read_fortune ($num);
          $fortune = $ffile->get_random_fortune ();


libfortune-perl (0.2-7) unstable; urgency=low

  * Use $(CURDIR) [make] instead of $(PWD) [sh] to fix issues with sudo.

 -- gregor herrmann <>  Sun,  1 Oct 2006 14:12:42 +0200

libfortune-perl (0.2-6) unstable; urgency=low

  * Moved debhelper to Build-Depends.
  * Set Standards-Version to 3.7.2 (no changes).
  * Set Debhelper Compatibility Level to 5.
  * Added refere


This package was debianized by Gustavo Franco <>
on Wed, 27 May 2001 20:06:26

Browse inside libfortune-perl_0.2-7_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libfortune-perl_0.2-7_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016