in reply to Re^3: perl grep with regex
in thread perl grep with regex

actually the space was in the beginning of line. i removed it and now it is working correctly.