cannot import certains modules when running perl scripts from Java on Windows

2009-08-10 Thread Thomas Evangelidis
Dear perl users, I'm having difficulties running perl scripts from java which import certain modules like File::Tail and File::Sort. I initially installed ActiveState Perl but then did a full Cygwin installation (which includes compilers, interpreters, etc of most popular programming languages). A

Re: calling a program from a perl script and redirecting to output to a file

2009-03-02 Thread Thomas Evangelidis
Hi again, I'm digging out this thread cause it seems that my problem has been only partially solved. Indeed "my @myout = `program file`;" can save the output of my program to an array for parsing but this doesn't happen when I use programs with output that cannot be redirected to a file (i.e. erro

Re: calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread Thomas Evangelidis
erase those arrays from memory upon completion of the execution. thanks in advance, Thomas 2009/2/19 Wagner, David --- Senior Programmer Analyst --- CFS < david.wag...@fedex.com> > > -Original Message- > > From: Thomas Evangelidis [mailto:teva...@gmail.com] > > Sent

calling a program from a perl script and redirecting to output to a file

2009-02-19 Thread Thomas Evangelidis
Dear Perl programmers, I want to run a program from a perl script and redirect the its output to a file. The programs is called apbs and takes 1 argument, so in unix shell I 'm simply typing the following: $apbs input.in >$ output.txt # '>' doesn't work here When using the system function I ge