in reply to reading a value out of a program

State Space:

Assuming you're on a Windows box, I'd try looking at driving the program with Win32::GUITest for interacting with the program. If you're running a different OS/windowing system, there are probably similar methods available.

...roboticus

When your only tool is a hammer, all problems look like your thumb.