I have a hash whose values are an array of file contents.I am trying to get a for loop going for each line the value as below.For some reason the for loop is not entered.When I debugged,the array value is like below.Can someone advise what am I doing worng?
@{$grep_lines{$filename}}= ARRAY(0x...) my %grep_lines; foreach $mk(@{ $grep_lines{ $filename } }) { #doesnt enter the loop }
In reply to How to access the hash array values? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |