Re: Can't get desired o/p with this code

2008-11-05 Thread Anirban Adhikary
Thanks a lot Chas for your your Help. Your code is running excellently.Now I have some doubts and questions to you. 1) if (eval "use $module; 1") -- from this line I understand that u are taking the exit status of the use command and if it is true then the module is installed. But where you are st

Re: Can't get desired o/p with this code

2008-11-05 Thread Chas. Owens
On Wed, Nov 5, 2008 at 01:03, Anirban Adhikary <[EMAIL PROTECTED]> wrote: > Dear List > I am trying to check some modules are installed or not in the system and if > modules are installed then trying to check their version number is according > to our requirement or not. > > use strict; > use warni

Can't get desired o/p with this code

2008-11-04 Thread Anirban Adhikary
Dear List I am trying to check some modules are installed or not in the system and if modules are installed then trying to check their version number is according to our requirement or not. use strict; use warning; my @mod_info=("DBD::Oracle","abc","DBI","Parallel::ForkManager",); my $module; my $