All
I have following shell command working as per expectation on shell but not working when invoked inside perl
Shell command:
grep -P -s -irl --include \*.v "\s+hello\s?[(].*" <PATH>
working fine
Inside Perl:
$inst_search = `grep -P -s -irl --include \*.v "\s+$inst\s?[(].*" @plt_dirs`;
not working
I am suspecting i am missing something with regexp inside grep..please correct me !
Thanks, Vivek
grepbuilt in. I would suggest using that rather than a shell escape.