in reply to Re: Delete line
in thread Delete line
I have tried this. But I dont want to store and print an array. While reading the lines, if it contains the word "IT" I have to delete the line#!/usr/bin/perl while(<DATA>){ @contents = grep { !/IT/ } $_; print @contents; } __DATA__ Economic slow down in IT HI
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Delete line
by cdarke (Prior) on Aug 14, 2009 at 09:13 UTC | |
|
Re^3: Delete line
by Anonymous Monk on Aug 14, 2009 at 06:35 UTC |