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
In reply to Re: something about improving code...
by merlyn
in thread something about improving code...
by Buckaroo Buddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |