T
transam
Dear perl friends,
I have a project, that uses fifo-s (named pipes) on linux and on
windows. Since the piping mechanism is very different on linux and on
windows, I have different braches for piping.
The code looks:
if($^O ne "linux"){
use WIN32
ipe;
WPipe = WIN32
ipe(...
..)
}
else{
fifo = mkfifo(...);
fp = open(FIFO, ...);
read ...
write ...
}
In windows case this works well.
On linux I get errors both for the
use clause, saying, it is not found, and
for the usage of the WIN32
ipe class saying,
the usage is illegal in that form.
Is there a way to tell perl, it should not
do any syntax check on windows code?
Or any other solution (except of using different
sources, that I do at the moment).
Thanks in advance, tr.
I have a project, that uses fifo-s (named pipes) on linux and on
windows. Since the piping mechanism is very different on linux and on
windows, I have different braches for piping.
The code looks:
if($^O ne "linux"){
use WIN32
WPipe = WIN32
..)
}
else{
fifo = mkfifo(...);
fp = open(FIFO, ...);
read ...
write ...
}
In windows case this works well.
On linux I get errors both for the
use clause, saying, it is not found, and
for the usage of the WIN32
the usage is illegal in that form.
Is there a way to tell perl, it should not
do any syntax check on windows code?
Or any other solution (except of using different
sources, that I do at the moment).
Thanks in advance, tr.