> > I could not get the following sub to work until
> > I had to move $emailLog inside the sub to get this
> > to work on the server.
> >
> > What did I miss or not understand?
More on that in a moment. First...
> Try putting a "my" (without quotes) before the variable.
> What that will do is to make it global
I think I see where Geraint is coming from, but a my'd
variable is the only type of variable that is NOT a "global",
using the term as it is used in "official" perl documentation.
As to your problem, was the sub called from another
perl file? If so, and it used a different package name,
then that would explain the problem. Let me know if
this was the case, and we can go on from there.