artwise
02-18-2003, 11:47 PM
I am struggling with hashes in perl. I am trying to declare a hash, but with no keys and values(empty one). Then I want to populate keys and values from a certain file with some structure(simple text file). I have ActiveState's perl 5.8.
Example:
%glMap ();
the file looks like:
key1|val1
key2|val2
...
How can I do it?
Example:
%glMap ();
the file looks like:
key1|val1
key2|val2
...
How can I do it?