I have tried to create a hash and push data into it. But then i am stuck on how to get the value of fruitname "apple.fru" and append it to fruitCount and fruitValue like apple_fru.fruitCount and apple_fru.fruitValue and delete the line fruitName . Any help would be appreciated.# this is a new file { date 14/07/2016 time 11:15 end 11:20 total 3 No "FRUITS" Fruit_class { Name "fruit 1" fruitName "apple_fru" fruitId "0" fruitCount 5 fruitValue 6 }
In reply to Accessing value from a hash table in perl by DAN0207
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |