OK sorry for not getting back earlier
man perlvar says
@INCThe array @INC contains the list of places that the "do EXPR",
"require", or "use" constructs look for their library files.
It initially consists of the arguments to any -I command-line
swi
testmail.pl =
#!/usr/bin/perl --
foreach $elem (@INC) { print "$elem\n"; }
use MIME::Lite;
foreach $elem (@INC) { print "$elem\n"; }
# /scripts> perl testmail.pl
/usr/local/perl/site/lib
/usr/local/perl/lib
.
/usr/local/perl/site/lib
/usr/local/perl/lib
.
At 09:19 AM 8/1/2007, Angelos Kara
Bill,
*
* the unibasic program
*
GJS = ""
CMD = "/usr/local/perl/bin/perl /scripts/testmailer.pl"
PCPERFORM CMD CAPTURING GJS
after executing GJS contains the error:
Can't locate MIME/Lite.pm in @INC (@INC contains:
/usr/local/perl/site/lib/MIME/ /usr/local/perl/site/lib
/usr/local/perl/lib .)
Try this
#!/usr/bin/perl --
foreach $elem (@INC) { print "$elem\n"; }
use MIME::Lite;
foreach $elem (@INC) { print "$elem\n"; }
O/H Greg Schraiber έγραψε:
> Can anyone tell where/how perl constructs the @INC ?
>
> I have a script that works when executed via perl script.pl at the
> command prom
Greg Schraiber wrote:
> Can anyone tell where/how perl constructs the @INC ?
>
> I have a script that works when executed via perl script.pl at the
> command prompt, but does not run when executed via shell execute
> statement from within a basic program.
>
> When executed from the basic progra
Can anyone tell where/how perl constructs the @INC ?
I have a script that works when executed via perl script.pl at the
command prompt, but does not run when executed via shell execute
statement from within a basic program.
When executed from the basic program it errors out with this message:
C