Hey Alex, My MUA believes you used Internet Mail Service (5.5.2653.19) to write the following on Wednesday, September 4, 2002 at 2:39:07 PM.
YA> Hi, YA> Having problems with just a simple test of MIME::Lite. Here is the output: YA> **************************************************************************** YA> ************************** YA> Global symbol "$msg" requires explicit package name at mimetest.pl YA> line 6. Been having problems with my mail today so don't know if you have a response yet... What is happening is from the 'use strict;' line. Basically you want to 'scope' your variables. Easiest way to take care of the err msg is put a 'my' in front of the $msg variable (and each one that gets a complaint). Note: you only do this once in the current scope... Once you do that and get it tested, run perldoc and check out the 'strict' and 'warnings' modules - you should always use them when working on your code. YA> And here is the script: YA> **************************************************************************** YA> ************************** YA> #!/usr/local/bin/perl -w YA> use MIME::Lite; YA> use strict; ,,,--put the my here. YA> $msg = MIME::Lite->new( YA> From =>'[EMAIL PROTECTED]', YA> To =>'[EMAIL PROTECTED]', YA> Subject =>'Testing MIME::Lite Module.', YA> Data =>"Successfully sent message." YA> ); YA> $msg->send; YA> **************************************************************************** YA> ************************** YA> So, what does the output message mean? -- [EMAIL PROTECTED] Flying with The Bat! eMail v1.61 Windows 2000 5.0.2195 (Service Pack 2) The generation of random numbers is too important to be left to chance. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]