D
dan baker
can anyone shed some light on the pros and cons of tie() ing to a hash
using 'DB_FILE' rather than just a plain tie? What I have been playing
with works great and seems very fast, but creates a binary file that I
can't move between a UNIX server and a PC test environment.... I am
wondering how I can get the tie(0 to create a plain ASCII file that
could be moved between platforms.
Also wondering about other tradeoffs such as speed, and at what point
in terms of number of records it would even be noticable. i have a
fairly simple value string, and can use delimiters to pack and unpack
multiple fields, so thats not a problem I don't mind dealing with.
my current code uses something lie this:
use DB_File;
tie %tempHash , 'DB_File' , $dbfile ;
$tempHash{$key} = $ValueString ;
and I am wondering about what I'd have to do to get the tie()ed file
to be written in plain ASCII text ?
thanx,
d
using 'DB_FILE' rather than just a plain tie? What I have been playing
with works great and seems very fast, but creates a binary file that I
can't move between a UNIX server and a PC test environment.... I am
wondering how I can get the tie(0 to create a plain ASCII file that
could be moved between platforms.
Also wondering about other tradeoffs such as speed, and at what point
in terms of number of records it would even be noticable. i have a
fairly simple value string, and can use delimiters to pack and unpack
multiple fields, so thats not a problem I don't mind dealing with.
my current code uses something lie this:
use DB_File;
tie %tempHash , 'DB_File' , $dbfile ;
$tempHash{$key} = $ValueString ;
and I am wondering about what I'd have to do to get the tie()ed file
to be written in plain ASCII text ?
thanx,
d