Hello
Use File::Butler module to do this job.
In reply to Re: Generating xml from Perl by gopalr in thread Generating xml from Perl by jonhy