Thank you very much for the script :). Unfortunatly it's not working for me because I'm working in Windows with Strawberry Perl and I can not open the text files. I have the files intext.xml, outtext.xml and vartext.xml. Can you help me with the changes I need to do to find/open the files?

I am using Activestate 5.8.8 under Windows XP. I doubt that Strawberry or windows version make any difference. Your problem is more likely with windows than with perl. If all three files are in the current directory, and you type the command in a command (DOS) window, it should work.

If you cannot use the current directory, specify the full path of each file. Long directory or flle names are not a problem in XP or newer, but paths which contain spaces must be enclosed in double quotes.

If you get a message "Cannot open.....", Change the \n to $! at the end of the open statements and try again. This should print a windows error message that should explain the problem.

Double-clicking on the icon for the perl file will not work, there is no way to specify the files.

You can create a shotcut to the perl file. The target field shoud be the same as a command line. Specify the full path to each file. Use the quotes if needed. Good Luck, Bill