more useful options | |
PerlMonks |
Re: regex on previous linesby si_lence (Deacon) |
on Jan 31, 2013 at 17:16 UTC ( [id://1016363]=note: print w/replies, xml ) | Need Help?? |
another possibilty is to read the whole file in one string and match it there
if you want to match only if the three lines are excatly xxxxx, yyyyy and zzzzz respectivly, remove the .*? from the regex
In Section
Seekers of Perl Wisdom
|
|