On Wed, Dec 19, 2001 at 03:40:21PM +0200, Prasanthi Tenneti wrote:
> how to remove a line from a file?
See perldoc -q 'line in a file', or the second question at
http://www.perldoc.com/perl5.6.1/pod/perlfaq5.html
Michael
--
Administrator www.shoebox.net
Programmer, System A
7;and ends with ']'.
Pls help me.
thank you.
cheers,
prasanthi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jon Molin
Sent: 19 December, 2001 15:37
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Remove a line
Prasanthi Tenneti wrot
Damn, that rocks!
Thus spake Nisim, Amit on 19-Dec-2001 :
->
->
-> hi,
->
-> perl -p -i -e 'undef $_ if //'
->
-> Amit
->
-> -Original Message-
-> From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]]
-> Sent: Wednesday, December 19, 2001 3:40 PM
-> To: [EMAIL PROTECTED]
-> Subject: R
hi,
perl -p -i -e 'undef $_ if //'
Amit
-Original Message-
From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: Remove a line
hi,
how to remove a line from a file?
pls help me.
thank you.
prasanthi.
--
To
hi,
perl -p -i -e 'undef $_ if /$line/'
Amit
-Original Message-
From: Prasanthi Tenneti [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: Remove a line
hi,
how to remove a line from a file?
pls help me.
thank you.
prasanthi.
--
Prasanthi Tenneti wrote:
>
> hi,
> how to remove a line from a file?
> pls help me.
press the delete key repetedly? :)
but really, i think you'll need to give som more info. what line? first
line, last line, random line, line nbr n?
would this be it?
my $line_to_delete = 7;
open (F, 'some_fil