in reply to Re: Text matching repost
in thread Text matching repost
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Text matching repost
by afoken (Chancellor) on Jun 18, 2012 at 14:24 UTC | |
by Neighbour (Friar) on Jun 19, 2012 at 06:39 UTC |