where TEMP1,TEMP2,... are variables and the values are got using API's.but over here i have used some junk data. Is there elegant way of handling this ? instead of assigning each key with a value,i mean something like "foreach" loop? Thanks.my %replacehash; $replacehash{TEMP1} = "contains TEMP1"; $replacehash{TEMP2} = "contains TEMP2"; $replacehash{TEMP3} = "contains TEMP3"; $replacehash{TEMP4} = "contains TEMP4"; ....
In reply to elegant way of handling hash? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |