On 4/26/06, Rance Hall <[EMAIL PROTECTED]> wrote: > @domain = split(' ',$domainlist);
> $domainlist = "test.domain.com\n\ntest2.domain.com\n\n" > @domain becomes "test.domain.comtest2.domain.com" with > just one element. Could there be some other character in $domainlist? When I use "\n" as you're showing, which (on my machine, at least) produces the hex(0A) character you're talking about, split() performs as documented. @domain = split(' ', "foo\n\nbar\n\n"); # two elements Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>