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

Hi Guys, I was basically trying to open IE. I was having a look around and stumble upon start and ShellExecute. But when I run the script. I see this error " This application has failed to start because perl512.dll was not found.Re-installing the application may fix this problem." I am not able to figure out why this error is thrown and what should I be doing to fix this.
use Win32::GUI; ShellExecute( 'open' => "$ENV{ProgramFiles}\\Internet Explorer\\iexplo +re.exe");

Replies are listed 'Best First'.
Re: perl512.dll was not found
by ikegami (Patriarch) on Feb 16, 2011 at 18:06 UTC

    Does this script give that error:

    1;

    If so, you're Perl is badly installed.

    If not, does this script give that error:

    use Win32::GUI;

    If so, I suspect you are running a Perl version earlier than 5.12, but the Win32::GUI you have installed (or some module used by it) as compiled using Perl 5.12.

      Thanks guys, My packages where getting installed in a different location. After I changed the selection in Areas tab it is working fine now.
Re: perl512.dll was not found
by Corion (Patriarch) on Feb 16, 2011 at 17:52 UTC

    Does Perl work at all? Does it work without trying to use ShellExecute? Also, I wasn't aware that Win32::GUI exports ShellExecute.