Using grep in perl with regex.
Using a regex in grep in perl code doesnt work.
Same is working in command line. Code:
my PATTERN="fnOpenLog\([0-9a-zA-Z \*&]+,[0-9a-zA-Z \*&]+,[0-9a-zA-Z \*&]+\)" The output of $#srch is -1 and the array @srch is null. |
What is the solution to this question seeing it is marked as SOLVED?
|
you should not use backtick and grep inside a perl script, because perl itself is capable to do the same thing.
|
The Solution is :
Use single quote: It will not resolve the regex and assign to the variable as it is(like a constant) Quote:
Quote:
|
All times are GMT -5. The time now is 05:59 PM. |