We don't bite newbies here... much | |
PerlMonks |
Re: How to print the lines immediately above and below a matching line?by toolic (Bishop) |
on Nov 25, 2012 at 13:23 UTC ( [id://1005487]=note: print w/replies, xml ) | Need Help?? |
if ($this_line =~ /<DATA>/) {Are you trying to read from the special DATA handle, or are you trying to match the exact string <DATA>? re indicates you are doing the latter:
In Section
Seekers of Perl Wisdom
|
|