in reply to Re: Copy Lines After Match
in thread Copy Lines After Match **UPDATE**
One can even take out the while loop and use grep like so:use warnings; use strict; while (<DATA>){ print unless /computer.|^\s+$/i; } __DATA__ COMPUTER1 ACCT1 ACCT2 ACCT3
These gives the output:print grep{!/computer.|^\s+$/i}<DATA>;
@jalopez453,ACCT1 ACCT2 ACCT3 ACCT4 ACCT7 ACCT8 ACCT9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Copy Lines After Match
by GotToBTru (Prior) on Dec 18, 2015 at 16:02 UTC |