Re: Modifying files with PERL

2009-12-15 Thread Uri Guttman
> "T" == Troy writes: T> also look at 'perl -i ' . you can modify original file directly please don't email me privately. there is no reason not to post that to the list. i cc'ed the list where my reply belongs. and please don't top post. finally, i am one of the experts on the list so

Re: Modifying files with PERL

2009-12-15 Thread Uri Guttman
> "A" == A4r0N writes: A> I need to add "new lines" of text with special characters, to specific A> lines in the file. There are 3 modifications needed. Been testing 2 A> here without success. A> #!/usr/bin/perl A> use FileHandle; that module is unneeded for such simple use. and

Re: Modifying files with PERL

2009-12-15 Thread Jim Gibson
On 12/15/09 Tue Dec 15, 2009 7:42 AM, "A4r0N" scribbled: > I need to add "new lines" of text with special characters, to specific > lines in the file. There are 3 modifications needed. Been testing 2 > here without success. > > #!/usr/bin/perl > > use FileHandle; > $file=FileHandle->new; > $F

Re: Modifying files with PERL

2009-12-15 Thread James Olin Oden
On Tue, Dec 15, 2009 at 10:42 AM, A4r0N wrote: > I need to add "new lines" of text with special characters, to specific > lines in the file. There are 3 modifications needed. Been testing 2 > here without success. > What error are you getting? What modifications are needed? I know what this scri