Thanks for the reply. I am starting to think there isn't a way to do this and I have stated my question poorly. Your solution works great for removing the text between the <Perl> and </Perl> tags but what I want is to see the resulting configuration generated by the Perl code between the tags. Maybe I could use a eval statement to do this.