in reply to how to substitute next line with nothing
Try this
use strict; use warnings; open FH,"Input_File" or die "can't open file $!\n"; open OFH,">Output_File" or die "can't open file $!\n"; while (<FH>) { print OFH $1,$2,$3,"\n" if (/Id=(\d+,).*?Full=(.*?,).*?Type = +(.*)$/) ; }
The Output_File contains your required output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to substitute next line with nothing
by CountZero (Bishop) on Feb 23, 2009 at 06:55 UTC |