I have an array of arrays that looks like the following:
my @cdata = (["test1.txt", "Subject2", 200],
["test2.txt", "Subject2", 300],
["test3.txt", "Subject1", 600],
["test4.txt", "Subject4", 900],
["test5.txt", "Subject6", 200],
);
Now I want to be able to look for the file name. Since the list can get rather long I decided maybe incorrectly to use grep.
my $SearchStr = "test2.txt";
my $GrepResult = grep(/$SearchStr/,@cdata);
Nothing is found. Now if I change the array to a simple array of file names it works great. That lead me to believe that the way I am referencing @Config is incorrect. I have not been able to get this to work.
Thanks
JGatrell