I'm new to scripting languages but I've been assigned a project where I need to spawn a perl process within tcl code. That perl process will run simultaneously and act as a command console for user input. Based on the commands entered it will pass messsages to the tcl process, or possibly create entries in a queue which is shared between the processes, which the tcl process will examine occasionally (the commands don't need to be immediately responsive).
How do you share data structures between a tcl process and a perl process? Or if you can't, is there a simple way to pass messages and data from perl to a tcl process that spawned it?