Hi All,
Got a problem using a reference to a main array within a package.
Why does this not work:
and this work:
Cheers, rotis23
Got a problem using a reference to a main array within a package.
Why does this not work:
Code:
my $smtp = Net::SMTP->new(\@main::SMTPServerList, Timeout => $main::SMTPServerTimeout);
and this work:
Code:
my @templist = @main::SMTPServerList;
my $smtp = Net::SMTP->new(\@templist, Timeout => $main::SMTPServerTimeout);
Cheers, rotis23