use Win32::Process; use Win32; if ( (defined $browser) && ($browser =~ /moz/i) ) { Win32::Process::Create( my $ProcessObj, "D:\\winxp\\MozillaFirebird\\MozillaFirebird-07\\MozillaFirebird.exe", "MozillaFirebird $elem", 0, NORMAL_PRIORITY_CLASS, ".") || die ErrorReport(); } else { Win32::Process::Create( my $ProcessObj, "C:\\Programme\\Internet Explorer\\iexplore.exe", "iexplore $elem", 0, NORMAL_PRIORITY_CLASS, ".") || die ErrorReport(); }