What happens if you are more specific? @domain = split(/\w/,$domainlist);
-----Original Message----- From: Rance Hall [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 1:22 PM To: beginners@perl.org Subject: problem with whitespace not splitting on split. I'm working on a new perl script thats giving me fits. Ive never quite seen anything like this. here is the command that is not giving me the results I want. @domain = split(' ',$domainlist); what should have happened was that if there was any whitespace in the file (including new lines, and such) thats where the split would have occurred <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>