That will print:#!/usr/bin/perl use strict; use warnings; my $count; do {$_ = <DATA>; print} until /formulae/ && ++ $count == 2; __DATA__ One line two line formulae blue line red line formulae more line more line formulae final line
One line two line formulae blue line red line formulae
Abigail
In reply to Re: Finding the second line an item appears on
by Abigail-II
in thread Finding the second line an item appears on
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |