Why is the below grep failing?It fails to search the contents of oem.h,what should I change to search for contents?
#!/usr/bin/perl -w use strict; use warnings; use File::Find; use File::Find; my $folder= "oem"; my @array="./oem.h"; my @content; @content = grep {/\Q$folder\E/} @array; print "@content";#prints ./oem.h instead of the matched content
In reply to Why is grep not searching for contents? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |