in reply to Regexp help, multiple lines
Also, if you have fixed-width fields, consider using substr or unpack.#!perl use strict; use warnings; my $i = 0; for (<DATA>) { print if /Paragraph2/ ... /Paragraph/; } __DATA__ Paragraph1: text Paragraph2: text1 text2 text3 Paragraph3: text
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp help, multiple lines
by 2ge (Scribe) on Aug 15, 2004 at 22:42 UTC | |
by CombatSquirrel (Hermit) on Aug 16, 2004 at 05:34 UTC | |
by 2ge (Scribe) on Aug 16, 2004 at 08:16 UTC |