Gowri Chandra Sekhar Barla, TLS, Chennai wrote:
I am unable to modify the input file ,

In addition to other posted solutions, I thought I'd mention the possibility to open the file in read/write mode.

    open my $FH, '+<', $filename or die $!;
    my @lines = <$FH>;
    truncate $FH, 0 or die $!;
    seek $FH, 0, 0 or die $!;
    foreach ( @lines ) {
        s/FRCC/FRE/;
        print $FH $_;
    }

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to