On Tue, Feb 10, 2009 at 05:40, Ice Man <wjharris...@gmail.com> wrote: snip > A bit of a quagmire here. Seems open2 /open3 are not available to me > at work. > A little frustrated here. Are there any other alternatives? snip
IPC::Open2 and IPC::Open3 are part of Core Perl and have been since the first version of Perl 5. If you are missing them then either you are using Perl 4 or earlier (incredibly unlikely) or someone has broken your Perl install (possible). More likely you are doing something wrong (like not including the modules with the use command). Try running perl -MIPC::Open2 -le 'print ok' on the command line. If it prints ok then you do in fact have the module. If gives you an error then please post the error and the results of this command perl -V If you do have the module, but are still having problems making it work, post sample code that demonstrates your problem and we will help you fix it. To get you started, here is a simple script that uses open2 to talk to the bc command: #!/usr/bin/perl use strict; use warnings; use IPC::Open2; open2 my $out, my $in, "/usr/bin/bc"; print $in "scale = 4\n1/2\nquit\n"; print <$out>; -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/