in reply to need help:insert a line in a textfile

You can write the following lines in your Perl editor and then execute it:
my $line="Whatever line you want to insert"; open FH, '>mytextfile.txt' or die $!; print FH $line; close FH;
Thanx:)