On 4/26/06, Rance Hall <[EMAIL PROTECTED]> wrote: > @domain = split(' ',$domainlist);
This usage of split only splits at spaces. For example, if $domaintlist contains 'a b c', you will get ('a', 'b', 'c'). It has nothing to do with other kinds of spaces. If you meant @domain = split /\s+/, $domanlist; then you got it right. > what happens is that the whitespace that is in the string is stripped > out and only one array element is returned after the split even though > there should have been several. Maybe you're trying to see the result in @domain like this print @domain and print in this case uses no delimiter between the array elements. If you do something like print "@domain" # will use ' ' between array elements print join "-", @domain # will use '-' between array elements maybe you will discover it is working, but you just didn't choose well how to show it to you. Best regards, Adriano -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>