in reply to Re: something about improving code...
in thread something about improving code...
my( $START, $STOP ) = qw( START STOP );
while ( <DATA> ) {
if ( /$START/ .. /$STOP/ ) {
print /(?:$START|$STOP)/ ? "not printing\n" : "PRINTING\n";
} else {
print "not printing\n";
}
}
__END__
Hello,
I like to START
something and
not STOP it
properly.
---
output:
not printing
not printing
PRINTING
not printing
not printing
Enjoy!
-- Casey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: something about improving code...
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 |