|
-
May 4th, 2004, 04:38 PM
#1
Perl: Associative arrays
Is it possible to extract the keys from a multi-dimensional associative array??
Here's the problem, I wrote a parser that dynamically fills an array with keys/values from a file. so I end up with:
$theArray{key1, key2, key3} = value;
but now after the fact I want to access these elements by looping trough the key values ie:
Code:
foreach $key1(??)
foreach $key2(??)
foreach $key3(??)
any ideas?
thanks,
Devan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|