Hi again!

I am having problems using the "s///" operator for substitution in of a 
particular pattern in a specified file.
For eg.

open(TRY,"+<try.txt");
while(<TRY>)
{
      $_ =~ s/a/p/g;
}

Is this the right way of doing it? And with what access mode shall I open 
the file ( >> or +> or +< ) ? And is the while loop
fine? What happens with this code is this code itself gets written in 
"try.txt"............


Thanks,
Prachi
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to