Hi, Let me try this again.Data in the below grep always is getting saved to @Hash_filematches[0].For example if the below code greps for some "load.c",it saves the data in [0],next time it greps for someother file"common.c",it puts the data in the same [0].How do I make sure that data is not getting overwritten and data gets appended to[1] [2]......
%Hash_filematches=HASH(0x182f664) safety.plf = ARRAY(0xc5a1020) -----[0]= //while () { ........ @{ $Hash_filematches{ $filename } } = grep( /\/\Q$file_name\E#/i, @{ + $Hash_filenames{ $filename } }); }
In reply to How to append data in a hash by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |