I am unable to replace all the array1 elements with corresponding array2 elements in a file. Here is my code
open FILE1, "<Test3.txt" or die " Cannot open to write file!";
$_ =~ s/@array1/@array2/g;
However, each array element is getting replaced individually..
I tried using for loop also, but didn't work. Please help.
Thanks in Advance,
13 Aug '12 - 20:36
Edited 13 Aug '12 - 22:50
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)