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 .) at /scripts/testmailer.pl line 4.
BEGIN failed--compilation aborted at /scripts/testmailer.pl line 4.
#
# the perl script
#
#!/usr/local/perl/lib/perl
use MIME::Lite;
$m = "<table border=2 cellpadding=5
cellspacing=5><tr><td>hello</td><td>because</td></tr><tr><td>goodbye</td><td>meeting</td></tr></table>";
$msg = MIME::Lite->new(
From =>'[EMAIL PROTECTED]',
To =>'[EMAIL PROTECTED]',
Subject =>'HTML Formated Email',
Type => 'text/html',
Data => qq{ <HTML><body>$m</body></HTML> } );
The script works find from the AIX command prompt.
Any idea?
Thank you,
Greg
At 08:51 AM 8/1/2007, Bill Luebkert wrote:
>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 program it errors out with this message:
>>Can't locate MIME/Lite.pm in @INC (@INC contains:
>>/usr/local/perl/site/lib /usr/local/perl/lib .) at
>>/scripts/testmailer.pl line 4.
>>MIME::Lite is installed and Lite.pm is
>>in /usr/local/perl/site/lib/MIME sub directory.
>>I'm running on AIX v5.2 Perl v5.8.8
>
>My suggestion would be for you to create the smallest basic program
>and smallest perl script that reproduces your problem and post them.
>Strip everything else out of your code that's not needed.
>
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs