Hi,
I have written a small content management system (soon to be GPLed) to display
my Hebrew content (presently in ISO8859-8-i), and wondered about the
following:
* How do I lock files I am writing to, if I am using GDBM_File? Do I need to
do any file locking or does GDBM_File do that automatically? What happens in
that case if my cgi script runs and encounters a locked file, does it wait or
return an error?
* Do I need to set certain values to search on Unicode strings? Do I need to
use 'use utf-8;'?
* How do I translate, in Perl, between Unicode and respective iso8859-x
encodings?
* How do I find out (assuming I import a random Unicode file) what codepages
are used (if I want to guess which ISO8859-x will be the destination
encoding)
* Is there a convenient way to use named Unicode characters (i.e. aleph, bet,
roman_lc_a, etc.), so that Perl (rather a module) would take care of looking
up what the appropriate code is?
* Is GDBM_File indexed according to the key, and thus optimized, or not.
Example: if I have a numeric key (an array db) numbering from 1 to 1000 and
look for record 500, does GDBM_File execute a binary search and find it after
(most likely) the first try, or does it read 500 records sequentially?
Thank you all in advance for your help; the GDBM_File documentation is almost
non existent, and the GDBM doc (for the c code) is not of that much more help
in my case. The Perl Unicode docs are somewhat dated and some changes are in
the air, so I am definitely lost here.
Arie Folger
--
It is absurd to seek to give an account of the matter to a man
who cannot himself give an account of anything; for insofar as
he is already like this, such a man is no better than a vegetable.
-- Book IV of Aristotle's Metaphysics
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]