in reply to Re: Text matching repost
in thread Text matching repost
I later realised that instead of using
I could just as well use (and more efficient too):if (/$start/ or /$stop/) { print; }
The meaning of $& is explained in perlvar asif ($&) { print; }
The string matched by the last successful pattern match.You can also use $MATCH if you use English;
In Section
Seekers of Perl Wisdom