Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash which looks like below(keys are all lowercase and value is the actual case).
$VAR1 = { 'seeklib ' => 'SeekLib ', 'test_src ' => 'test_src ', 'frames ' 'st_vx6953_5m_bayer ' => 'ST_VX6953_5M_Bayer
Now I am trying to grep for the key values in all the .mk files in cwd and push only those values which have a case-sensitive mismatch.Can someone advise how can I do that?
foreach my $filename(keys %hash) find(sub { push @{ $Hash_casemismatch{ $filename } }, grep( (/\/\Q$key\E#/), * +.mk); }, $cwd); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to make sure only case-sensitive grep's get pushed
by moritz (Cardinal) on Mar 17, 2011 at 09:22 UTC | |
by Anonymous Monk on Mar 17, 2011 at 15:54 UTC | |
by moritz (Cardinal) on Mar 17, 2011 at 15:57 UTC | |
by Anonymous Monk on Mar 17, 2011 at 16:38 UTC | |
by moritz (Cardinal) on Mar 17, 2011 at 17:21 UTC |