http://qs321.pair.com?node_id=974276


in reply to Re^2: testing android application using perl
in thread testing android application using perl

You can issue adb commands using system, and you can also connect to the qemu console/Android emulator using TCP. I haven't used either method, but I seem to remember that you can also send inputs using the TCP console to simulate user input.