Index of /~vlado/srcperl/snip

      Name                    Last modified       Size  Description

[DIR] Parent Directory 07-Feb-2008 12:20 - [TXT] Readme.txt 23-Jun-2004 13:23 1k [TXT] appendfile 06-May-2003 15:00 1k [TXT] check_keys 20-Mar-2003 14:04 1k [TXT] decode_S 27-Jul-2005 16:53 1k [TXT] decode_w 27-Jul-2005 16:54 1k [TXT] encode_S 27-Jul-2005 16:53 5k [TXT] encode_w 27-Jul-2005 16:54 1k [TXT] encodex 02-Dec-2002 13:59 1k [TXT] get_new_filename 03-Jul-2007 10:53 1k [TXT] getfile 29-Nov-2002 08:43 1k [TXT] intersection 20-Mar-2003 15:48 1k [TXT] month_to_digits 02-Sep-2003 15:55 1k [TXT] options 30-Dec-2002 12:17 2k [TXT] putfile 05-Dec-2002 10:23 1k [TXT] quoted-printable 12-Mar-2004 08:12 1k [TXT] random_choose 30-Oct-2008 07:19 1k [TXT] random_sequence 25-Jan-2007 13:58 1k [TXT] randomize-array 20-Jan-2006 07:19 1k [TXT] read_db 19-Feb-2006 12:15 1k [TXT] regex-uri 08-Jul-2004 15:03 1k [TXT] rm_recursively.pl 07-Jan-2003 13:56 1k [TXT] toString 09-May-2003 12:54 1k [TXT] union 20-Mar-2003 15:48 1k [TXT] weekday_to_digits 03-Sep-2003 16:48 1k

This directory contains some useful Perl functions and code snippets.

Designed for the cut-and-paste software reuse. :-)

read_db - read a database from a string or file ("file=filename") into
          an array of records.  DB format:
              id:1
              name: J. Public
              phone: 000-111
             
              id:2
              etc.
          line can be continued with \ at the end or by starting the
          next line with space or tab.