Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Perl Program to change particular pattern with other value



anuchoudary
New User

Sep 11, 2014, 9:43 AM


Views: 11321
Perl Program to change particular pattern with other value

Hi,

Perl program to change a particular pattern with other values that are present in a text file.
Example : A file contains around 1000 patterns say "computer:" all this 1000 patterns "computer:" should be changed to patterns given in a test file.
Say file has following Content
abc
efg
ejk
...
The file which has compute: should be changed to abc next efg and ejk ..etc

Any help is appreciated .

Thanks,
Anusha


Laurent_R
Veteran / Moderator

Sep 11, 2014, 10:29 AM


Views: 11320
Re: [anuchoudary] Perl Program to change particular pattern with other value

Have you tried something so far?