in reply to something about improving code...
This seems much simpler. Don't reinvent the scalar dot-dot operator!$START = 'START'; $END = 'END'; while (<>) { if (/$START/../$END/) { print "inside\n"; } else { print "outside\n"; } }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: something about improving code...
by cwest (Friar) on Jun 28, 2000 at 01:54 UTC | |
by merlyn (Sage) on Jun 28, 2000 at 03:27 UTC | |
by jcwren (Prior) on Jun 28, 2000 at 03:51 UTC | |
by merlyn (Sage) on Jun 28, 2000 at 03:57 UTC | |
by cwest (Friar) on Jun 28, 2000 at 04:20 UTC |