develooper Front page | perl.beginners | Postings from March 2002

external hashtable

Thread Next
From:
maasha
Date:
March 18, 2002 06:23
Subject:
external hashtable
Message ID:
20020318142336.GE1713@image
hi

i have some files of the format:

{
'key1' = 'value2',
'key2' = 'value3',
'key3' = 'value4',
'key4' = 'value5',
'key5' = 'value6',
}

the values are large huge chunks of text.

how can i import such a file into a perl script as a hash?
and how can i write the hash to a new file (same format as above)?

best :)

martin

-- 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About