maybe there's a more elegant way, but this will work: open I, "input.txt"; open O, "output.txt"; while(<I>) { print O unless $. == $foo } where $foo is the line number you dont want printed. hth, Jos Boumans Stéphane JEAN BAPTISTE wrote: > HI. > > I'm looking for a method to delete the line number x into a file. > > Is it simply possible ? > > tks
- to delete only one line Stéphane JEAN BAPTISTE
- Re: to delete only one line Jos Boumans
- Re: to delete only one line Nigel Wetters