Then, the + won't be interpreted in the regular expression.my $dirPath = 'c:\apps\c++\application'; print grep { /\Q$dirPath\E/ } ('c:\apps\c++\application\myfile.cpp');
In reply to Re: using grep with multiple "+"
by zejames
in thread using grep with multiple "+"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |