how can i make this work (dont work)
Individual hash (and array) elements must be scalars. In order to store a more complex data structure, you have to store a reference — which is what $value already is. So assuming that this is what you want to do, and assuming %temp was previously declared as a hash,
$certname = $value->{'certname'}; $temp{$certname} = $value;
should do the trick.
In reply to Re^3: Convert string to hash
by AppleFritter
in thread Convert string to hash
by gabrielsousa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |