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
In reply to Re^2: Delete line
by Anonymous Monk
in thread Delete line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |