develooper Front page | perl.beginners | Postings from August 2009

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

From:
Thomas Evangelidis
Date:
August 10, 2009 00:29
Subject:
cannot import certains modules when running perl scripts from Java on Windows
Message ID:
833e1faf0908100029i47cc45fevf92c5d514b26db44@mail.gmail.com
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). After doing that I installed the extra modules I needed
with CPAN, using this command line:

perl -MCPAN -e 'install File::Sort'

All the modules have been installed successfully and work fine when I
run my scripts from Cygwin, but when I invoke them from Java code they
don't work. After a puzzling my brains for I while I discovered the
source of the problem.

Can anyone shed some light on this please? Is it because I have both
ActivePerl and Cygwin perl installed?

thanks in advance,
Tom



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About