This may not be the best route... But here is how I check for a module...

use strict;
eval { require Net::Pcap; };
if ($@) {
  print "WinPcap required - http://winpcap.polito.it/install/default.htm ";
  exit;
}


--mikej
Michael Jung


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Carter Thompson
> Sent: Tuesday, July 06, 2004 4:36 PM
> To: Perl-Win32-Users
> Subject: Using "use module" in multiplatform environment.
>
>
>
>
> I have a script that is utilized on both Solaris and Windows.
> In the Solaris environment I use fork() to create a separate
> process, in the Windows environment I use Win32::Process. This
> unfortunately creates a bit of a problem when I attempt to
> run the script on Solaris since the compiler attempts to find
> the Win32 modules I've "used".  What's the easiest way to
> implement this?  I've already checked into autouse and require.
>
> Thanks!
>
> Carter.
>
>
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to