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