http://qs1969.pair.com?node_id=332644

seanborland has asked for the wisdom of the Perl Monks concerning the following question:

I want to write a perl program to control gdb. i.e. the command is put into my program and then passed to gdb, and gdb's output is put into my program and then displayed. I use open2 but it can not fulfil my requirement. Can someone be kind enough to give some demo code? Thanks a lot.