- or download this
while (<DATA>) {
next if ! /^DATA/;
# ...
- or download this
<DATA> for 1 .. 3;
while (<DATA>) {
# ...
- or download this
my $found_start_of_data;
while (<DATA>) {
...
while (<DATA>) {
# ...
}
- or download this
# Extract
my ($want) = $data =~ m{(some_regular_expression)};
# Eliminate
$data =~ s{some_regular_expression}{};