For example:%new_hash = (split(/;/,$variable_with_keys_and_values));
Outputs the value associated with the key 'no doughnut'%new_hash = (split(/;/,'apple;good;banana;good;citrus;good;no doughnut +;bad cop')); print $new_hash{'no doughnut'};
In reply to Re: How do I dynamically create a hash table?
by Anonymous Monk
in thread How do I dynamically create a hash table?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |