<p>Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?</p>

There is on Linux/Unix:
http://sourceforge.net/projects/x11guitest
I'm not familiar of anything similar for Windows or Mac that uses Perl.