Jan wrote:
If you could help me making this more elegantly (execution time does not matter) that would be great.
I love rewriting other people's code ;) So I want to help you, but I don't quite know what you want, nor what your script is supposed to do.
Can you provide a full, working script? With any global data defined in the script (or by supporting external files read by the script)? Can you provide examples of its use?
Can you be more precise in your goals for the script? What is it, in the definition below, that you find unappealing or inelegant?
If you need to send attachments, feel free to email me personally. I'll upload them to the Wiki (or you can do so yourself).
-Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
