> If it's that big you might want to 'tie' the hash
> to a DB file. But it's too early in morning for
> me to go into explaining how. anyone want to jump
> in on this?
Don't know enough to be able to implement something
that works for him. Platform etc.
I suggest Data::Dumper, which can do exactly this
function.
> how can I import such a file into a perl script
> as a hash?
my %data;
{
local @ARGV = 'file.data';
local $\ = undef;
eval '%data = ' . <>;
}
# Untested
> > and how can I write the hash to a new
> file (same format as above)?
print FILE "{\n";
while (my ($key, $value) = each %data) {
print FILE $key . "=>" . $value;
}
print FILE "}\n";
# Untested
Jonathan Paton
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]