Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cory-ko
Created December 11, 2012 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cory-ko/4257197 to your computer and use it in GitHub Desktop.
Save cory-ko/4257197 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
while (<DATA>) {
chomp;
print "$_\n" if ( /^_START_$/ .. /^_END_$/ );
}
__END__
AAA
_START_
BBB
CCC
_END_
DDD
fjasdlkf
fdsafjdaslkfj
_START_
111
222222
333
_END_
fdasfjdsl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment