So I've been trying to figure out a good way to pass the contents of a variable between two concurrently running perl programs. So for example, program 1 generates a variable '$number' and I want it to be sent to a second program to do something with (e.g. program 2 would print $number). I would like to do this without writing a temporary file or actually writing the contents of the variable somewhere by program 1 and reading it back into program 2, I want to move the data as directly (poor word choice, but hopefully it captures what I am trying to do) as possible between the two programs.
Also, does a similar method exist for passing data directly between a perl program and python or vice versa?
Thanks for any help.