Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(DATA, ">$_") or die "File not open: $!"; foreach $line (@data) { $line =~ s/AAA/EEE/gi; $line =~ s/CCC/NEWWORD/gi; $line =~ s/UUU/NEW/gi; $line =~ s/ERD/IPK/gi; print DATA $line; } close(DATA);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Substitute data issue
by merlyn (Sage) on Jun 27, 2003 at 13:31 UTC | |
|
Re: Substitute data issue
by broquaint (Abbot) on Jun 27, 2003 at 13:36 UTC | |
|
Re: Substitute data issue
by gjb (Vicar) on Jun 27, 2003 at 13:36 UTC | |
|
Re: Substitute data issue
by Zaxo (Archbishop) on Jun 27, 2003 at 13:41 UTC | |
by Anonymous Monk on Jun 27, 2003 at 13:50 UTC | |
|
Re: Substitute data issue
by diotalevi (Canon) on Jun 27, 2003 at 13:37 UTC |