Hi Experts!
Hoping someone can help me out. Here goes...
bear with me, please.
I have a file that contains a few email
addresses. I read this file and push each line
into an array:
push(@AddrArray, $_);
Then I do a foreach on the contents of the
array:
foreach $AddrToCheck (@AddrArray) {
...
Now, I have an internally developed function
(the internal of which are hidden from me) which
processes the email addresses. This takes as one
of it's parameters an array of strings.
So before I call the function I say:
@AddrList = ("$Department", "$AddrToCheck");
Note: $Department is assigned earlier.
I then pass @AddrList to the function like so:
processAddrList($foo, "NULL", $bar, [EMAIL PROTECTED]);
My problem is that this function is failing,
except if I hardcode an address in the @AddrList
= line like so:
@AddrList = ("$Department", "[EMAIL PROTECTED]");
the function works. I thought it may have
something to do with the @ and I tried escaping
the @ like so:
$AddrToCheck =~ s/)@)/\\$1/g;
But this did not work.
Any ideas?
Thanks!
Meriwether
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]