Rob Dixon wrote:
[...]
All it does is to put some stub code in place of any missing modules, with an
import routine that just pushes the name of the package onto array
@main::NOTFOUND. Then the CHECK block code just reports the contents of that
array and dies if it's not empty.
There are a numbe
From: sormariano <[EMAIL PROTECTED]>
> However, to set some code before the use MODULE directives is something
> I could never imagine, due to my still poor perl knowledge.
> I thought that if some modules were missing, I had errors also if some
> instructions were put before the use MODULE direc
Rob Dixon ha scritto:
[...]
It works but I prefer to write all into 1 script.
I wasn't clear what your purpose was, as running a program will report any
module that is missing anyway. I can only guess that you want them all checkd in
one pass, and I have written this code that will do th
Francesco wrote:
> Jenda Krynicky ha scritto:
>> From: sormariano <[EMAIL PROTECTED]>
>>
>>> I made a script that uses some modules.
>>> Obviously if one of the modules is not installed, the script doesn't start.
>>> I'd like to have the possibility to notify to the user which are the
>>> modul
From: Francesco <[EMAIL PROTECTED]>
> Jenda Krynicky ha scritto:
> > Put something like this on top of the script:
> >
> > BEGIN {
> > push @INC, sub {print STDERR "Still looking for $_[1]\n";exit;};
> > }
> >
> >
> I tried this and I got the following output
>
> Still looking for Encode/Conf
Jenda Krynicky ha scritto:
Date sent: Thu, 28 Aug 2008 17:25:16 +0200
From: sormariano <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject:Check for modules presence
Hello to everybody,
I made a script that uses some modules.
Date sent: Thu, 28 Aug 2008 17:25:16 +0200
From: sormariano <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject:Check for modules presence
> Hello to everybody,
>
> I made a script that uses some modules.
> Obviously if one of the
I am not sure how you can check within a script.
But to check to see if the modules are loaded on your system you can
issue the following command at the command line
Instmodsh
Then -l
Hope that helps.
Robert Gorrebeeck
Sr. EDI Developer
-Original Message-
From: sormariano [mailto:[E