I have an array "@files" which contain all the lines in a file.Some of the contents of the array ends with .plf like
//source/embark/load.c //deploy//common.c //depot/scripts/files/loading.plf
....Now I have the below hash "Hash_filematches",I want to execute the loop for only the keys (btw,keys in this hash only contain filenames with .plf extension)*not* in the array @files.How to i write this condition?
for my $key (keys %Hash_filematches) { if ($key !=~ /grep (/$key/i, @files/) {#grepping for the key value + and if it's not in the array then only proceed } }
In reply to Grep fail condition by iphone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |