in reply to Convert VB equivalent to perl

Problem #1: SendKeys is not an OLE class. Win32::OLE won't help here.

Problem #2: AppActivate is not an OLE class. It's not even a class. Win32::OLE won't help here.

You'll have to start by finding an equivalent library in Perl (Win32::GuiTest was mentioned), or by finding out how they work at the system call level (in order to use XS or Win32::API.