[Pdx-pm] Emulate a file in memory?

Austin Schutz tex at off.org
Fri Oct 1 14:18:21 CDT 2004


On Fri, Oct 01, 2004 at 11:02:59AM -0700, Roderick A. Anderson wrote:
> Is is possible, in Perl, to emulate a file in memory?  Open it, read
> from, write to etc. then save to disk when closed?
> 
> Here is what I'm trying to do.  Create an application that stores data
> in a SQLite database stored in memory.  When done or before using the
> data; encrypt/decrypt the whole thing, before/after a save-to/read-from
> disk.  Of course a DataDumper like datastructure  would work also but
> I'm a SQL/database kind of thinker.
> 

	One more idea: if you abstrace reading/writing to the database, you
could encrypt/decrypt the data then. This seems like less brainpower than
trying to encrypt/decrypt the whole thing. TMTOWTDI and all that. :-)

	Austin


More information about the Pdx-pm-list mailing list