I'm buiding a script at the moment and part of it receives a trigger via
Telnet to say send me an XML request for one of five random items.

Sending the request is time critical, so the faster the better and what
I do at the moment is wait for the trigger command and only then
populate the XML with the correct match from the array of five items.

It does work but what I'd like to do is pre-build an array of the five
possible files so that when I get the trigger I can just send the
correct file.

I'm a total newbie and I can't find how to build an array of XML files
using the data from an existing array to populate the files.

Am I making sense? If I am could someone offer me some pointers on how
to build an array using the data from an existing array.
-- 
Posted via http://www.ruby-forum.com/.