> ----- Original Message ----- > From: "Clifford Sobchuk" <[email protected]> > To: "Sisyphus" <[email protected]>; "Dima Kogan" > <[email protected]>; "Chris Marshall" <[email protected]> > Cc: <[email protected]> > Sent: Wednesday, June 29, 2011 12:59 AM > Subject: RE: [Perldl] PDL::Graphics::Gnuplot > > > > Rob did you ever get the module to build on the win32 system? I > > have the MinGW environment installed and I just tried it with the > > latest tarball and have the same results as yours below. Does it > > have to be built from within the Perl tree - I did it from the > > extracted directory in my Downloads directory. > > > > No, I didn't get anywhere with it - though I haven't spent much time > on it. (It doesn't have to be built within the Perl tree - in fact > it's best if you don't do that. Building, as you did, in your > Downloads directory is fine.) > > Afaik, the error comes from perl itself. It's one I've come across > before. The "list form of pipe" is apparently not implemented on MS > Windows - so the piping in Gnuplot.pm has to be rewritten if the > module is to work on that OS. > I guess that's somewhere between a trivial to impossible task. I've > not directly used pipes before, and I didn't go looking to see how > difficult/easy the task of porting Gnuplot.pm to Windows might be.
Hi. First off, what do you mean by "building"? The module is pure perl; nothing needs to be built, really. Second, if windows supports communication over pipes then things should just work for the most part. Regarding the "list form of pipe", the perl open() function can be used to spawn a process directly or via a shell: open( $handle, '-|', qw(program argument1 argument2) ) runs the process directly open( $handle, '| program argument1 argument2' ) runs the process via a shell The direct method is the "list form". Generally doing it directly is preferable since it bypasses the extra overhead incurred from the shell. It also removes the requirement for the shell to split the command string into arguments, since this would be done already. The error message seems to imply that the windows perl requires the shell. Change the script to the second form above and try again, if you want to experiment. If I understand the error message correctly, that should make it work. Also, I'm making some big improvements to the error handling in Gnuplot.pm, so please hold off on any serious porting effort until I'm done; should be relatively soon now. dima _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
