
japhy
Enthusiast
Feb 17, 2000, 4:12 AM
Post #2 of 4
(1940 views)
|
Ok, if you mean the ARRAY @to has one element, the value of which is: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> this@there.com, mine@yours.org, what@ever.net </pre><HR></BLOCKQUOTE> And you want to REPOPULATE the array by splitting that first element into many elements, then I'd suggest you do: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> @to = split /,\s*/, $to[0]; # or, if there might be more than one element @to = split /,\s*/, join ", ", @to; </pre><HR></BLOCKQUOTE> Then, @to in scalar context will tell you how many email addresses there are.
|