you can discriminate by OS if that helps you:
$^O will hold the name of the operating system you're running on
(alltho i think it'll probably be in %ENV somewhere too)
so something like this might work:
BEGIN: { use Win32 if $^O eq 'MSWIN32' } #or whatever it's called again
depending on the context of which you are writing this, many options are
possible.
you could have 2 different files holding os-specific methods to use
depending on the OS
or you could eval the statements, trapping errors as they might come up
or just write 2 completely different programs.
all depends on what you need
hth
Jos
----- Original Message -----
From: "jaya kumaran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 11:56 AM
Subject: regarding win32 functions
> Hi,
>
> i have used
>
> use win32::process() statement
>
> This statement is used only for NT ie using if statement. In NT, this is
used to kill a process. But when the same code is taken to UNIX, it is
giving compilation error. Ie, its searching for Wind32 libraries in UNIX
which is not existing. How to resolve this problem??
>
> Is there a facility in perl to have preprocessor statement.
>
> Thanks,
> Jaya
> --
>
> _______________________________________________
> Get your free email from http://www.indiya.com
>
>
> Powered by Outblaze
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]