CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
explicit package name?

 



douge
Deleted

May 5, 2000, 6:20 AM

Post #1 of 2 (471 views)
explicit package name? Can't Post

After running the following :
---------------------------------
my($sm) = new SendMail("10.200.1.4");
$sm->From($sender);

if ($prod == "BIG VENT")
{
my(@recipients) = (@recipients3);
}

$sm->To(@recipients); (THIS IS LINE 35!)
--------------------------------------
I recieve this ERROR:

Global symbol "@recipients" requires explicit package name at C:\Inetpub\wwwroot\cgi-bin\SendMail99.pl line 35.
Execution of C:\Inetpub\wwwroot\cgi-bin\SendMail99.pl aborted due to compilation errors.

Please help. Thanks in advance. Doug



Jasmine
Administrator / Moderator

May 5, 2000, 9:58 AM

Post #2 of 2 (471 views)
Re: explicit package name? [In reply to] Can't Post

Doug,

It sounds like you're running strict. Look for your use vars line (usually at the top of the program) and add @recipients to the list.

Good luck!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives