texuser74 has asked for the wisdom of the Perl Monks concerning the following question:
I have an input file "xxx.in" with the data
<item><name>Donald</name><title>I Title</title></item>
<item><name>James</name><title>II Title</title></item>
and a template "template.txt" as
<item><name></name><title></title><year></year></item>
i want to generate the output file "xxx.out" by filling the template from by picking the input from "xxx.in".
my output "xxx.out" file should look like
<item><name>Donald</name><title>I Title</title><year></year></item>
<item><name>James</name><title>II Title</title><year></year></item>
please help in doing this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find and Replace using Multiple files
by PodMaster (Abbot) on Aug 30, 2004 at 12:25 UTC | |
|
Re: Find and Replace using Multiple files
by pelagic (Priest) on Aug 30, 2004 at 12:08 UTC |