Sorry for troubling you monks. I figured out the answer for my stupid question. I need to read the file in the paragraph mode to get the desired result.
I tried the following and it is working as expected.
Thanks!perl -00 -ne 'use v5.10; say $& if (/kid.He/s);' temp kid He
In reply to Re: dot(.) metacharacter in single line modifier mode
by raghuprasad241
in thread dot(.) metacharacter in single line modifier mode
by raghuprasad241
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |