in reply to Re: find and replace in perl
in thread find and replace in perl

hey

can't we do the find and replace operation via perl on the entire text file , without taking it into an array

like say find and replace on a file handler . sorry I am new to perl , so I don't have a lot of command on it

Replies are listed 'Best First'.
Re^3: find and replace in perl
by davido (Cardinal) on Jun 24, 2013 at 06:18 UTC

    perl -pi.bak -e 's/pattern/replace/g' filename.txt

    Dave

Re^3: find and replace in perl
by Anonymous Monk on Jun 24, 2013 at 07:35 UTC

    sorry I am new to perl

    :) I read perlintro every day, and I'm very old to perl :)