in reply to using grep with multiple "+"

Protect your path by using \Q \E :

my $dirPath = 'c:\apps\c++\application'; print grep { /\Q$dirPath\E/ } ('c:\apps\c++\application\myfile.cpp');
Then, the + won't be interpreted in the regular expression.

Kind regards

--
zejames