Re: Associative array of a normal array

2001-06-26 Thread Chas Owens
Short answer: Yes. Medium answer: Sort of, but they need to references to arrays not arrays Long answer: A hash (common term for associative array) contains a scalar key and a scalar value. A scalar value can be (not inclusive) a number, a string, or a reference. Since we can generate a refer

Associative array of a normal array

2001-06-26 Thread Paul Murphy
Hi all. Is there any way in Perl to set up an associative array of normal arrays? So the key would be an arbitrary string, and the value for instance would be an array of numbers. I'll explain what I want to do, as their may well be better ways: Suppose I have a file like this: Hello; 1 Go