It is a .pl file where the user enters his inputs. I could make that file a sub in the current file but the code will be just too long. I also wanted to know how to save those inputs to a text file? Thx alot guys for ur input...
Search groups.google.com for "Tk IPC::Open3". You are not clear what the other script does, but you can launch it with some ipc (see perldoc perlipc), then grab the output and save it.